6.0.0-beta6
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
4/10/26
H
istory
A
ttachments
C
omment
W
atch
Download
Comment on [#4370] enable / disable, moving of rules, not being saved the first time
*
Your Email Address
*
Spam protection
Enter the letters below:
.__..___.. ..__ __ | | _/ |__|[__)/ ` |__|./__.| || \\__.
Comment
> I just found a way to fix this problem on the vacation.php page (a > fix for the other pages should be similar). In fact, the problem > seems to be that not all filter objects are loaded when the first > save happens. In my case, I noticed that when the first save in > vacation.php failed, the whitelist filter got loaded and then, when > trying to save the second time (this one successful), the whitelist > filter did not get loaded again. > > > > So to fix the problem in vacation.php, I added all filter objects to > the beginning of the page, which became > > > > /* Get vacation object and rules. */ > > $vacation = &$ingo_storage->retrieve(INGO_STORAGE_ACTION_VACATION); > > $filters = &$ingo_storage->retrieve(INGO_STORAGE_ACTION_FILTERS); > > > > #added to fix http://bugs.horde.org/ticket/comment.php?id=4370 > > $whitelist = &$ingo_storage->retrieve(INGO_STORAGE_ACTION_WHITELIST); > > $forward = &$ingo_storage->retrieve(INGO_STORAGE_ACTION_FORWARD); > > $blacklist = &$ingo_storage->retrieve(INGO_STORAGE_ACTION_BLACKLIST); > > $spam = &$ingo_storage->retrieve(INGO_STORAGE_ACTION_SPAM); > > #end fix > > > > $vac_id = $filters->findRuleId(INGO_STORAGE_ACTION_VACATION); > > $vac_rule = $filters->getRule($vac_id); > >
Attachment
Watch this ticket
N
ew Ticket
M
y Tickets
S
earch
Q
uery Builder
R
eports
Saved Queries
Open Bugs
Bugs waiting for Feedback
Open Bugs in Releases
Open Enhancements
Enhancements waiting for Feedback
Bugs with Patches
Enhancements with Patches
Release Showstoppers
Stalled Tickets
New Tickets
Horde 5 Showstoppers