Skip to content

Commit

Permalink
Resolve problema onde a serialização de campos multiselect falhava ca…
Browse files Browse the repository at this point in the history
…so o campo estivesse vazio
  • Loading branch information
erleibiazzio committed Jan 3, 2025
1 parent ac99ed5 commit 56052fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/Definitions/Metadata.php
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ function getDefaultSerializer() {
}
},
'multiselect' => function($value){
$value = array_filter($value);
$value = $value ? array_filter($value) : [];
return json_encode($value);
},
'location' => function($value) {
Expand Down

0 comments on commit 56052fc

Please sign in to comment.