Skip to content

Commit

Permalink
add fix that was lost during last PR commit (#602)
Browse files Browse the repository at this point in the history
  • Loading branch information
mjauvin authored Sep 11, 2020
1 parent 85026cb commit 1e4f7d7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions classes/TranslatableBehavior.php
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,10 @@ public function getAttributeTranslated($key, $locale = null)
*/
public function getTranslateAttributes($locale)
{
if (!array_key_exists($locale, $this->translatableAttributes)) {
$this->loadTranslatableData($locale);
}

return array_get($this->translatableAttributes, $locale, []);
}

Expand Down

0 comments on commit 1e4f7d7

Please sign in to comment.