Skip to content

Commit

Permalink
Merge pull request #23 from Flobbos/4.x
Browse files Browse the repository at this point in the history
Removed debug code
  • Loading branch information
Flobbos authored Jun 29, 2021
2 parents 2d9e5da + ff62b81 commit 421d4b4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Crudable/Translations/Translatable.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,11 @@ public function processTranslations(
if (!is_null($trans_key)) {
unset($trans[$trans_key]);
}

if (!isset($this->required_trans) && !empty($this->filterNull($trans, $language_key))) {
//$approved[] = $this->checkForTranslatedSlug($trans);
$approved[] = $this->checkForTranslatedSlug($trans);
} elseif (isset($this->required_trans) && $this->checkRequired($trans)) {
//$approved[] = $this->checkForTranslatedSlug($trans);
$approved[] = $this->checkForTranslatedSlug($trans);
}
}

Expand Down

0 comments on commit 421d4b4

Please sign in to comment.