Skip to content

Commit

Permalink
Merge pull request #1425 from nextcloud/backport/1383/stable0.8
Browse files Browse the repository at this point in the history
[stable0.8] fix(Import): expect selectionOptions as array from json
  • Loading branch information
blizzz authored Dec 10, 2024
2 parents 7e92046 + 1667995 commit cf9dbf0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Controller/ApiTablesController.php
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ public function createFromScheme(string $title, string $emoji, string $descripti
numberDecimals: $column['numberDecimals'],
numberPrefix: $column['numberPrefix'],
numberSuffix: $column['numberSuffix'],
selectionOptions: $column['selectionOptions'] == [] ? '' : $column['selectionOptions'],
selectionOptions: $column['selectionOptions'] === [] ? '' : \json_encode($column['selectionOptions'], JSON_THROW_ON_ERROR),
selectionDefault: $column['selectionDefault'],
datetimeDefault: $column['datetimeDefault'],
usergroupDefault: $column['usergroupDefault'][0] ?? '',
Expand Down

0 comments on commit cf9dbf0

Please sign in to comment.