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

Fixing getAttribute() not checking null against specific locale #150

Merged
merged 1 commit into from Oct 17, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Translatable/Translatable.php
Expand Up @@ -148,7 +148,7 @@ public function getAttribute($key)
}

if ($this->isTranslationAttribute($key)) {
if ($this->getTranslation() === null) {
if ($this->getTranslation($locale) === null) {
return;
}

Expand Down