Skip to content

Commit

Permalink
Merge pull request #1383 from nextcloud/fix/noid/import-selectionoptions
Browse files Browse the repository at this point in the history
fix(Import): expect selectionOptions as array from json
  • Loading branch information
blizzz authored Oct 17, 2024
2 parents 4426ad6 + c288a3e commit 65fa94d
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 65fa94d

Please sign in to comment.