[imp] filterprefs.php and the template system

Liam Hoekenga liamr at umich.edu
Thu May 29 18:30:47 UTC 2008


So... the prefs I added to filterprefs.php for our installation broke  
between RC3 and RC4.  Here's the original thread, to refresh your  
memories..

     http://marc.info/?l=imp&m=120127828419257&w=2

Any ideas what changed that might have broken my stuff?


Liam


Quoting Chuck Hagenbuch <chuck at horde.org>:

> Quoting Liam Hoekenga <liamr at deathstar.org>:
>
>> It looks like the solution that requires the least change to the Horde
>> code is to change the name of my form fields in the update_prefs case
>> statement:
>>
>>     if (!$bw_lists_locked) {
>>         $prefs->setValue('show_bw_lists',
>> Util::getFormData('filter_bw_lists'));
>>     }
>>     if (!$spam_links_locked) {
>>         $prefs->setValue('show_spam_links',
>> Util::getFormData('filter_spam_links'));
>>     }
>>
>> tho, I'll go with the second option you mentioned should you guys make
>> that change yourself.
>
> I don't feel strongly about it, so, unless there's a bug filed or
> someone speaks up enthusiastically, I'm going to leave it as is.
>
>> It looks like in Horde 3.2.x / IMP 4.2.x, checked checkboxes are given
>> the value "on" in the prefs database, instead of "1"?
>
> I can't reproduce this for general checkboxes, but the filter prefs
> and a few other custom checkboxes were doing it. This should fix it:
>
> http://lists.horde.org/archives/cvs/Week-of-Mon-20080121/074369.html
>
> -chuck
> --
> IMP mailing list - Join the hunt: http://horde.org/bounties/#imp
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: imp-unsubscribe at lists.horde.org
>



More information about the imp mailing list