[Tickets #5901] Vacation filter - save and enable

bugs at bugs.horde.org bugs at bugs.horde.org
Mon Nov 19 15:01:02 UTC 2007


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/?id=5901
-----------------------------------------------------------------------
 Ticket             | 5901
 Created By         | dgehl at inverse.ca
 Summary            | Vacation filter - save and enable
 Queue              | Ingo
 Version            | HEAD
 Type               | Bug
 State              | Unconfirmed
 Priority           | 2. Medium
 Owners             | 
-----------------------------------------------------------------------


dgehl at inverse.ca (2007-11-19 07:01) wrote:

Ingo is configured with the preferences backend:

How to reproduce the problem:
- click on filters
- click on vacation
- change the subject or the test
- click on "save and enable"

Result:
- new message is in place in sieve
- no change has been made in the vacation preference in the preferences
postgres database backend

If I click only on 'Save' instead of 'Save and Enabled', the script is
saved correctly.


The problem leading to the bug is that when I click 'Save and Enable',
first the 'vacation' preference is set, then the 'filter' preference (to
enable the vacation message). Unfortunately, when the preference 'store'
method is 
executed, only the 'filter' preference is saved, but not the 'vacation'
one.

The problem can be circumvented by adding an explicit preferences 'store'
call at the end of the _store method in lib/Storage/prefs.php as follows:
$prefs->store();




More information about the bugs mailing list