Skip to content
This repository has been archived by the owner on Jun 18, 2019. It is now read-only.

Commit

Permalink
Merge pull request #457 from Gummibeer/patch-2
Browse files Browse the repository at this point in the history
fire saving event in every case
  • Loading branch information
Gummibeer committed Jun 27, 2018
2 parents 768e155 + 8402cc2 commit f72764e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Translatable/Translatable.php
Expand Up @@ -241,6 +241,10 @@ public function save(array $options = [])
} else {
// If $this->exists and not dirty, parent::save() skips saving and returns
// false. So we have to save the translations
if ($this->fireModelEvent('saving') === false) {
return false;
}

if ($saved = $this->saveTranslations()) {
$this->fireModelEvent('saved', false);
$this->fireModelEvent('updated', false);
Expand Down

0 comments on commit f72764e

Please sign in to comment.