[Tickets #7123] Can't turn on use_trash when no trash folder is set

bugs at horde.org bugs at horde.org
Mon Jul 28 20:41:52 UTC 2008


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

Ticket URL: http://bugs.horde.org/ticket/7123
------------------------------------------------------------------------------
  Ticket             | 7123
  Created By         | Chuck Hagenbuch <chuck at horde.org>
  Summary            | Can't turn on use_trash when no trash folder is set
  Queue              | IMP
  Version            | HEAD
  Type               | Bug
  State              | Assigned
  Priority           | 2. Medium
  Milestone          |
  Patch              |
  Owners             | Horde Developers, Michael Slusarz
------------------------------------------------------------------------------


Chuck Hagenbuch <chuck at horde.org> (2008-07-28 16:41) wrote:

Because of this line at the bottom of imp/lib/prefs.php:

// Don't show Trash options if Trash is disabled.
if (!$GLOBALS['prefs']->getValue('use_trash')) {
     $GLOBALS['_prefs']['trashselect']['type'] =  
$GLOBALS['_prefs']['use_vtrash']['type'] =  
$GLOBALS['_prefs']['empty_trash_menu']['type'] = 'implicit';
}

And the check on use_trash that won't let you turn it on if there is  
no trash folder, it is impossible to turn on use_trash if you haven't  
previously selected a trash folder, and you can't select a trahs  
folder because that selection is hidden when use_trash is off.

I *think* the thing to do here would be to just always show the  
trashselect pref and go from there. Any other ideas?





More information about the bugs mailing list