[Tickets #7489] Re: _prefs_hook_fullname charset problem

bugs at horde.org bugs at horde.org
Tue Nov 4 16:50:46 UTC 2008


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

Ticket URL: http://bugs.horde.org/ticket/7489
------------------------------------------------------------------------------
  Ticket             | 7489
  Updated By         | lampa at fit.vutbr.cz
  Summary            | _prefs_hook_fullname charset problem
  Queue              | Horde Framework Packages
  Version            | FRAMEWORK_3
  Type               | Bug
  State              | Feedback
  Priority           | 2. Medium
  Milestone          |
  Patch              |
  Owners             |
------------------------------------------------------------------------------


lampa at fit.vutbr.cz (2008-11-04 11:50) wrote:

I had the same problem, hooked default preference is converted to sql  
driver charset, but it shouldn't be. Here is a patch:

*** horde-3.2.2/lib/Horde/Prefs.php     2008-09-10 12:31:51.000000000 +0200
--- horde/lib/Horde/Prefs.php   2008-11-04 17:34:11.000000000 +0100
***************
*** 786,792 ****
                   empty($this->_scopes[$scope][$name]['v']) ||
                   $this->_scopes[$scope][$name]['m'] & _PREF_DEFAULT) {
                   $val = Horde::callHook('_prefs_hook_' . $name,  
array($this->_user), 'horde', $name);
!                 $this->_scopes[$scope][$name]['v'] =  
$this->convertToDriver($val, NLS::getCharset());
                   if ($this->_scopes[$scope][$name]['m'] & _PREF_LOCKED) {
                       $this->_scopes[$scope][$name]['m'] |= _PREF_DIRTY;
                   }
--- 786,796 ----
                   empty($this->_scopes[$scope][$name]['v']) ||
                   $this->_scopes[$scope][$name]['m'] & _PREF_DEFAULT) {
                   $val = Horde::callHook('_prefs_hook_' . $name,  
array($this->_user), 'horde', $name);
!               if (($this->_scopes[$scope][$name]['m'] &  
_PREF_DEFAULT) == 0) {
!                     $this->_scopes[$scope][$name]['v'] =  
$this->convertToDriver($val, NLS::getCharset());
!               } else {
!                   $this->_scopes[$scope][$name]['v'] = $val;
!               }
                   if ($this->_scopes[$scope][$name]['m'] & _PREF_LOCKED) {
                       $this->_scopes[$scope][$name]['m'] |= _PREF_DIRTY;
                   }






More information about the bugs mailing list