[Tickets #11231] Re: Unable to use prefs_init on IMP preferences
bugs at horde.org
bugs at horde.org
Thu Jun 28 08:54:19 UTC 2012
DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.
Ticket URL: http://bugs.horde.org/ticket/11231
------------------------------------------------------------------------------
Ticket | 11231
Updated By | rui.carneiro at portugalmail.net
Summary | Unable to use prefs_init on IMP preferences
Queue | IMP
Version | Git master
Type | Bug
State | Unconfirmed
Priority | 1. Low
Milestone |
Patch |
Owners |
------------------------------------------------------------------------------
rui.carneiro at portugalmail.net (2012-06-28 08:54) wrote:
>> Works fine here. Example prefs.local.php:
>>
>> <?php
>> $_prefs['add_source']['hook'] = true;
>
> That is exactly what I tried but only works for horde prefs. I tried
> with your master branch, any idea why this could be happening?
I found what was happening. If the pref value is null the hook will
not be called, example:
$_prefs['add_source']['value'] = null;
$_prefs['add_source']['hook'] = true;
I don't know if this is an expected behaviour but changing the value
to an empty string fixed my problem.
More information about the bugs
mailing list