Summary | Fix dimp_show_preview default value |
Queue | IMP |
Queue Version | Git master |
Type | Bug |
State | Resolved |
Priority | 2. Medium |
Owners | slusarz (at) horde (dot) org |
Requester | leandro.damascena (at) gmail (dot) com |
Created | 06/14/2010 (5514 days ago) |
Due | |
Updated | 06/29/2010 (5499 days ago) |
Assigned | 06/15/2010 (5513 days ago) |
Resolved | 06/28/2010 (5500 days ago) |
Github Issue Link | |
Github Pull Request | |
Milestone | |
Patch | No |
Taken from Ben Klang
Summary ⇒ Fix dimp_show_preview default value
State ⇒ Resolved
this setting - default to 'horiz' instead.
LDAP rewrite sounds great, but this ticket is not the proper place for
further input on that topic.
Bug #9095: Fix default value for dimp_show_preview preferencehttp://git.horde.org/diff.php/imp/config/prefs.php.dist?rt=horde-git&r1=e0b94d1c9d08ff8a0d94ba0aa507b33c3858244a&r2=df76797cc3bf64bb3ee216994de06eecd6f8c082
http://git.horde.org/diff.php/imp/templates/dimp/javascript_defs_dimp.php?rt=horde-git&r1=6291908e487ca530962ed9df16171db3504e1345&r2=df76797cc3bf64bb3ee216994de06eecd6f8c082
change to ldap backend because saves more space and number of querys
in LDAP Server than now.. However, I think this is a "terrible" bug on
IMP (because DIMP isn't working with ldap backend just now) and needs
to be fixed before to make your enhancement.
driver saves *all* prefs to the backend, instead of only the ones that
have been changed by the user.
I can't comment on DIMP's value being boolean vs. "horiz" since I'm
not terribly familiar with the use of that preference. But I would
like to fix the LDAP Prefs driver to behave more like the SQL Prefs
driver.
New Attachment: prefldap.diff
backend for preferences, IMP saves just some preferences (I think
"editable preferences", locked = false) and uses prefs file to get
others. However when IMP uses ldap backend for preferences, IMP saves
all of them in LDAP and it creates a trouble with dimp_show_preview
pref.
In "imp/templates/dimp/javascript_defs_dimp.php" line 70
'preview_pref' => $GLOBALS['prefs']->getValue('dimp_show_preview') ===
true ? 'horiz' : $GLOBALS['prefs']->getValue('dimp_show_preview'),
This never will be true because LDAP returns a string type and not a
boolean type.
I've made a patch, can you guys analyze and give a feedback if it is a
better way to solve it?
Assigned to Michael Slusarz
State ⇒ Assigned
Priority ⇒ 2. Medium
State ⇒ Unconfirmed
Patch ⇒ No
Milestone ⇒
Queue ⇒ IMP
Summary ⇒ Ldap preferences
Type ⇒ Bug
login of user works perfectly, but the second time don't work and
folders, inbox and others things isn't showed.
Looking at debug I can't see no errors..