[dev] nag default tasklist selection broken
Jason Clifton
jason at citydiesel.net
Tue Jun 26 18:15:30 UTC 2007
After updating to the latest cvs of nag, the default tasklist behavior
seems to be broken. changing this:
if (!$GLOBALS['prefs']->isLocked('default_tasklist') &&
count($tasklists) > 1) {
$v = &$this->addVariable(_("Task List"), 'tasklist_id',
'enum', true, false, false, array($tasklist_enums));
$v->setAction(Horde_Form_Action::factory('reload'));
}
to
$tasklist_id = Nag::getDefaultTasklist(PERMS_EDIT);
if (!$GLOBALS['prefs']->isLocked('default_tasklist') &&
count($tasklists) > 1) {
$v = &$this->addVariable(_("Task List"), 'tasklist_id',
'enum', true, false, false, array($tasklist_enums));
$v->setAction(Horde_Form_Action::factory('reload'));
$v->setDefault($tasklist_id);
}
should fix this..
--
Jason Clifton
City Diesel
www.citydiesel.net
More information about the dev
mailing list