[horde] Setting date and time preferences

Jan Schneider jan at horde.org
Wed Apr 22 15:36:43 UTC 2015


Zitat von Jens Wahnes <wahnes at uni-koeln.de>:

> On Wed, Apr 22 2015, at 09:14:19 +0200, Jan Schneider wrote:
>
>>>>> So, what's the right way to set defaults for these values?
>>>> See the other reply
>>> Are you referring to Mauricio's message? That didn't really help me
>>> out, and, so far, I didn't receive any other reply.
>
>> Yes, and I've seen your reply.
>
> AFAICT, Mauricio was talking about setting individual user's
> preferences. That's not what I'm talking about. Individual user's date
> and time preferences work fine. What I would like to do is change the
> defaults that are used when there are no individual user's preferences.
> So far, I'm unable to do this, and I would like to find out why.
>
>> I had refered to him, because having set individual preference values
>> is the only reason why default values (or hooks) won't be used.
>
> I'm afraid I still don't understand what you're saying.
>
> For sure, there aren't any user preferences that have anything to do
> with date and time in this case:
>
> mysql> select pref_scope, pref_name from horde_prefs where  
> pref_uid='mmuster2';
> +------------+------------------+
> | pref_scope | pref_name        |
> +------------+------------------+
> | horde      | last_login       |
> | horde      | last_logintasks  |
> | horde      | upgrade_tasks    |
> | kronolith  | default_share    |
> | kronolith  | display_cals     |
> | nag        | default_tasklist |
> +------------+------------------+
>
> Still, the intended default setting made via prefs.local.php
> ($_prefs['twentyFour']['value'] = true;) does not take effect for this
> user.
>
> So, are you saying is that this is a bug then?

Yes, this should work.

> Or are you saying that I need to use a hook to set up the default value
> properly?
>
>
> Jens



-- 
Jan Schneider
The Horde Project
http://www.horde.org/
https://www.facebook.com/hordeproject



More information about the horde mailing list