[Tickets #9431] Re: pref hook : Infinite Loop

bugs at horde.org bugs at horde.org
Wed Dec 8 00:08:48 UTC 2010


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

Ticket URL: http://bugs.horde.org/ticket/9431
------------------------------------------------------------------------------
  Ticket             | 9431
  Updated By         | Michael Slusarz <slusarz at horde.org>
  Summary            | pref hook : Infinite Loop
  Queue              | IMP
  Version            | Git master
  Type               | Bug
-State              | Feedback
+State              | Resolved
  Priority           | 1. Low
  Milestone          |
  Patch              |
-Owners             |
+Owners             | Michael Slusarz
------------------------------------------------------------------------------


Michael Slusarz <slusarz at horde.org> (2010-12-07 19:08) wrote:

That hook does not work because it is causing the infinite loop.  You  
can't get the value of the preference with a getValue() call when the  
preference hasn't been set yet.  Duh, Michael.

That being said, there does need to be a way to indicate from the hook  
that the original preference value should be used.  I originally  
committed something to allow returning null to indicate the original  
value should be used.  But it makes more sense to pass the original  
value in, since it may be useful to alter the original value.






More information about the bugs mailing list