Skip to content

Commit

Permalink
allow empty array to delete the relation items
Browse files Browse the repository at this point in the history
  • Loading branch information
mjauvin committed Dec 6, 2024
1 parent 5da0c7a commit 052a779
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions modules/backend/formwidgets/TagList.php
Original file line number Diff line number Diff line change
Expand Up @@ -125,10 +125,6 @@ public function getSaveValue($value)
*/
protected function hydrateRelationSaveValue($names): ?array
{
if (!$names) {
return $names;
}

if (!is_array($names)) {
$names = [$names];
}
Expand Down

0 comments on commit 052a779

Please sign in to comment.