Refactored scheduling options for React (semi-converted to ES6 too)

- fixed issue with Pausing sending (missing self::)
This commit is contained in:
Jonathan Labreuille
2016-06-17 13:05:46 +02:00
parent 90c3f0e4e4
commit 269ddae93a
6 changed files with 396 additions and 437 deletions

View File

@ -18,7 +18,7 @@ class SendingQueue extends Model {
if($this->count_processed === $this->count_total) {
return false;
} else {
$this->set('status', STATUS_PAUSED);
$this->set('status', self::STATUS_PAUSED);
$this->save();
return ($this->getErrors() === false && $this->id() > 0);
}