Skip to content

Commit

Permalink
Fixed save categories when is null
Browse files Browse the repository at this point in the history
  • Loading branch information
broopdias authored Jul 20, 2020
1 parent a3b69af commit 40916c6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Controller/Adminhtml/Element/Save.php
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,8 @@ public function execute()
foreach ($data['category_identifier'] as $catIdentifier) {
if (isset($data[$catIdentifier])) {
$data[$catIdentifier] = implode(',',$data[$catIdentifier]);
} else {
$data[$catIdentifier] = null;
}
}
}
Expand Down

0 comments on commit 40916c6

Please sign in to comment.