fix recurring tasks
This commit is contained in:
@@ -278,9 +278,8 @@ class Task
|
||||
$this->recur = new Recurring($recur);
|
||||
} elseif ($recur instanceof Recurring) {
|
||||
$this->recur = $recur;
|
||||
} else {
|
||||
throw new TaskwarriorException();
|
||||
|
||||
} elseif ($this->recur && is_null($recur)) {
|
||||
throw new TaskwarriorException('You cannot remove the recurrence from a recurring task.');
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -40,19 +40,19 @@ class Taskwarrior
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $uuid
|
||||
* @param string $filter
|
||||
*/
|
||||
public function delete($uuid)
|
||||
public function delete($filter)
|
||||
{
|
||||
$this->command('delete', $uuid);
|
||||
$this->command('delete', $filter);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $uuid
|
||||
* @param string $filter
|
||||
*/
|
||||
public function done($uuid)
|
||||
public function done($filter)
|
||||
{
|
||||
$this->command('done', $uuid);
|
||||
$this->command('done', $filter);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user