6.0.0-beta1
7/5/25

[#8977] Saving prefs doesn't work that need prefsInit()
Summary Saving prefs doesn't work that need prefsInit()
Queue Horde Framework Packages
Queue Version Git master
Type Bug
State Resolved
Priority 2. Medium
Owners slusarz (at) horde (dot) org
Requester jan (at) horde (dot) org
Created 04/19/2010 (5556 days ago)
Due
Updated 04/20/2010 (5555 days ago)
Assigned
Resolved 04/20/2010 (5555 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
04/20/2010 05:46:38 AM Michael Slusarz Comment #3
State ⇒ Resolved
Reply to this comment
Really no way around this but to add a prefsEnum() function.   
prefsInit() must not be run until after the form is handled - since 
form actions may alter display parameters.
04/20/2010 05:45:03 AM Git Commit Comment #2 Reply to this comment
Changes have been made in Git for this ticket:

Bug #8977: Add prefsEnum()

http://git.horde.org/diff.php/ansel/lib/Application.php?rt=horde-git&r1=09a9b451bd97f63bea5b24e27adf3ab3fe0b9723&r2=a861b23f6c641b45228b9a8a2a8cf90e5013be5e
http://git.horde.org/diff.php/fima/lib/Application.php?rt=horde-git&r1=de627313aa2e96ad4e506daae3574e57daf50fb7&r2=a861b23f6c641b45228b9a8a2a8cf90e5013be5e
http://git.horde.org/diff.php/framework/Core/lib/Horde/Core/Prefs/Ui.php?rt=horde-git&r1=5b0969a7d3fad81ae04676dc8731a70205943ec5&r2=a861b23f6c641b45228b9a8a2a8cf90e5013be5e
http://git.horde.org/diff.php/framework/Core/lib/Horde/Registry/Application.php?rt=horde-git&r1=5dfb1dc4140eb2996f0251c6335ccdb05028f93c&r2=a861b23f6c641b45228b9a8a2a8cf90e5013be5e
http://git.horde.org/diff.php/horde/lib/Application.php?rt=horde-git&r1=6e6599dfe74533b868cb0aaa80eeb6a2d482ce92&r2=a861b23f6c641b45228b9a8a2a8cf90e5013be5e
http://git.horde.org/diff.php/horde/lib/Prefs/Ui.php?rt=horde-git&r1=24d822349cce4f81ea50220504b3180b3b735346&r2=a861b23f6c641b45228b9a8a2a8cf90e5013be5e
http://git.horde.org/diff.php/imp/lib/Application.php?rt=horde-git&r1=4633493b31e06c9325168d48d9bd9cdf60490f44&r2=a861b23f6c641b45228b9a8a2a8cf90e5013be5e
http://git.horde.org/diff.php/imp/lib/Prefs/Ui.php?rt=horde-git&r1=7c3aa3dcac7239f3f932d708e417263dc946b033&r2=a861b23f6c641b45228b9a8a2a8cf90e5013be5e
http://git.horde.org/diff.php/kronolith/lib/Application.php?rt=horde-git&r1=3729c269d5cbd21e849894cac34440684b008d6f&r2=a861b23f6c641b45228b9a8a2a8cf90e5013be5e
http://git.horde.org/diff.php/mnemo/lib/Application.php?rt=horde-git&r1=c7c584eaaa785a646946ef47527a023f17638a35&r2=a861b23f6c641b45228b9a8a2a8cf90e5013be5e
http://git.horde.org/diff.php/nag/lib/Application.php?rt=horde-git&r1=3729c269d5cbd21e849894cac34440684b008d6f&r2=a861b23f6c641b45228b9a8a2a8cf90e5013be5e
http://git.horde.org/diff.php/turba/lib/Application.php?rt=horde-git&r1=8528dca67db1bb5f7170da6bc3e6b09efbb50f43&r2=a861b23f6c641b45228b9a8a2a8cf90e5013be5e
04/19/2010 11:37:00 AM Jan Schneider Comment #1
Priority ⇒ 2. Medium
Patch ⇒ No
Milestone ⇒
Assigned to Michael Slusarz
Queue ⇒ Horde Framework Packages
Summary ⇒ Saving prefs doesn't work that need prefsInit()
Type ⇒ Bug
State ⇒ Assigned
Reply to this comment
If you have a preference that requires prefsInit(), e.g. to populate 
an 'enum' value, this code isn't called from handleForm(). That leads 
to a "An illegal value was specified." error, e.g. when saving the 
address book pref group in Turba.

Saved Queries