Fix handling of recurring tasks when marked as completed
This commit is contained in:
parent
634cb85fb5
commit
4f9968d9ac
1 changed files with 2 additions and 2 deletions
|
@ -534,7 +534,7 @@ class tasklist extends rcube_plugin
|
|||
private function handle_recurrence(&$rec, $old)
|
||||
{
|
||||
$clone = null;
|
||||
if ($this->driver->is_complete($rec) && $old && $this->driver->is_complete($old) && is_array($rec['recurrence'])) {
|
||||
if ($this->driver->is_complete($rec) && $old && !$this->driver->is_complete($old) && is_array($rec['recurrence'])) {
|
||||
$engine = libcalendaring::get_recurrence();
|
||||
$rrule = $rec['recurrence'];
|
||||
$updates = array();
|
||||
|
@ -579,7 +579,7 @@ class tasklist extends rcube_plugin
|
|||
// update the task but unset completed flag
|
||||
$rec = array_merge($rec, $updates);
|
||||
$rec['complete'] = $old['complete'];
|
||||
$rec['satus'] = $old['satus'];
|
||||
$rec['status'] = $old['status'];
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue