Skip to content

Commit

Permalink
Don't include SmartLists when determining a default tasklist_id.
Browse files Browse the repository at this point in the history
Fixes fatal error when saving an existing task, only
one tasklist exists and at least one SmartList exists.
  • Loading branch information
mrubinsk committed Jul 1, 2014
1 parent a6a6bb4 commit bb73ed4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nag/app/controllers/SaveTask.php
Expand Up @@ -48,7 +48,7 @@ public function processRequest(Horde_Controller_Request $request, Horde_Controll
}

if ($prefs->isLocked('default_tasklist') ||
count(Nag::listTasklists(false, Horde_Perms::EDIT)) <= 1) {
count(Nag::listTasklists(false, Horde_Perms::EDIT, false)) <= 1) {
$info['tasklist_id'] = $info['old_tasklist'] = Nag::getDefaultTasklist(Horde_Perms::EDIT);
}
try {
Expand Down

0 comments on commit bb73ed4

Please sign in to comment.