Set newsletter status as draft when restoring newsletters trashed during sending [MAILPOET-816]

This commit is contained in:
Alexey Stoletniy
2017-02-21 13:13:59 +03:00
parent c98cdb3e57
commit bcf89f0dfe
3 changed files with 69 additions and 3 deletions

View File

@ -136,6 +136,9 @@ abstract class ValidModel extends \Model {
} else {
$this->validateAndSet($key, $value);
}
// we should return $this to not break Idiorm's fluent interface:
// $model->set('property', 'foo')->save();
return $this;
}