Skip to content

Commit

Permalink
[import] trim all whitespaces in mg importers
Browse files Browse the repository at this point in the history
  • Loading branch information
rastislav-chynoransky committed May 20, 2024
1 parent dfee235 commit b75610c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Importers/MgImporterTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ protected function init(): void
};

$this->sanitizers[] = function ($value) {
return empty_to_null($value);
return empty_to_null(trim($value));
};

$this->mediumTranslationKeys = array_flip(trans('item.media', locale: 'cs'));
Expand Down

0 comments on commit b75610c

Please sign in to comment.