6.0.0-alpha12
6/8/25

[#3761] fullname hook & locked pref not working
Summary fullname hook & locked pref not working
Queue Horde Framework Packages
Queue Version HEAD
Type Bug
State Resolved
Priority 1. Low
Owners
Requester engineer (at) mca (dot) k12 (dot) pa (dot) us
Created 04/11/2006 (6998 days ago)
Due
Updated 04/15/2006 (6994 days ago)
Assigned 04/13/2006 (6996 days ago)
Resolved 04/15/2006 (6994 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
04/15/2006 11:18:34 PM Chuck Hagenbuch Deleted Original Message
 
04/15/2006 11:16:16 PM Chuck Hagenbuch Comment #5
State ⇒ Resolved
Reply to this comment
Fixed in CVS. Thanks for the comparison point!
04/15/2006 11:06:29 PM horde (at) eltofts (dot) homelinux (dot) com Comment #4 Reply to this comment
A related problem seems to be that preferences are not saved (with a 
MySQL backend).



Reverting to an older Prefs cures this.
04/13/2006 02:18:12 AM engineer (at) mca (dot) k12 (dot) pa (dot) us Comment #3
New Attachment: Horde_Prefs_Working.tgz
Reply to this comment
The current version I am running is a CVS checkout from 04/11/06.



After replacing framework modules, one at a time, I have determined 
that the problem is in "Prefs".  I am not positive on a date of the 
working version, I think it was around 03/26/06.  I do have a copy 
that is working correctly and I have attached it.  I think the option 
got broken sometime shortly after that.



If I install all of the framework from 04/11/06 and then replace only 
Prefs with the older version, the fullname hook option works with the 
fullname pref is locked.


04/13/2006 01:37:06 AM Chuck Hagenbuch Comment #2
State ⇒ Feedback
Reply to this comment
What Horde version are you using? And do you remember what the working 
version was, or if it was a CVS checkout, the date and branch?
04/11/2006 11:36:42 PM engineer (at) mca (dot) k12 (dot) pa (dot) us Comment #1
Priority ⇒ 1. Low
Type ⇒ Bug
Summary ⇒ fullname hook & locked pref not working
Queue ⇒ Horde Framework Packages
State ⇒ Unconfirmed
Reply to this comment
Setting a hook for fullname and locking the fullname pref cause the 
hook not to be executed.  For the hook to be executed, the fullname 
pref must not be locked.



uncomment _prefs_hook_fullname (gecos) from hooks.php



Set prefs.php - fullname to be "locked" with no value

$_prefs['fullname'] = array(

     'value' => '',

     'locked' => true,

     'hook' => true,

     'shared' => true,

     'type' => 'text',

     'desc' => _("Your full name:")

);



After login and composing a new message the fullname is not displayed. 
  Changing the locked to false and nothing else will work.



According prefs comment:

// user full name for From: line

// If you lock this preference, you must specify a value or a hook for it in

// horde/config/hooks.php.



Removing the value line in the prefs.php has no effect on the problem. 
  Since a hook is specified, this should work.  This option worked 
correctly as listed a few months ago.  Using an older revision of 
Horde framework makes this work.


Saved Queries