Skip to content

Commit

Permalink
Bug: 14196 Fix displaying tab filters in Kolab driver.
Browse files Browse the repository at this point in the history
Signed-off-by: Michael J Rubinsky <mrubinsk@horde.org>
  • Loading branch information
sunweaver authored and mrubinsk committed Dec 29, 2015
1 parent 10b718e commit c02522f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions nag/lib/Driver/Kolab.php
Expand Up @@ -478,7 +478,7 @@ public function retrieve($completed = Nag::VIEW_ALL)
switch ($completed) {
case Nag::VIEW_INCOMPLETE:
if ($complete) {
continue;
continue 2;
}
if ($start && $t->recurs() &&
($completions = $t->recurrence->getCompletions())) {
Expand All @@ -494,18 +494,18 @@ public function retrieve($completed = Nag::VIEW_ALL)
->nextRecurrence($lastCompletion)
->timestamp();
if ($start > $_SERVER['REQUEST_TIME']) {
continue;
continue 2;
}
}
break;
case Nag::VIEW_COMPLETE:
if (!$complete) {
continue;
continue 2;
}
break;
case Nag::VIEW_FUTURE:
if ($complete || $start == 0) {
continue;
continue 2;
}
if ($start && $t->recurs() &&
($completions = $t->recurrence->getCompletions())) {
Expand All @@ -521,13 +521,13 @@ public function retrieve($completed = Nag::VIEW_ALL)
->nextRecurrence($lastCompletion)
->timestamp();
if ($start < $_SERVER['REQUEST_TIME']) {
continue;
continue 2;
}
}
break;
case Nag::VIEW_FUTURE_INCOMPLETE:
if ($complete) {
continue;
continue 2;
}
break;
}
Expand Down

0 comments on commit c02522f

Please sign in to comment.