Skip to content

Commit c288a3e

Browse files
committed
fix(Import): convert selectionOptions from import to a json string
Signed-off-by: Arthur Schiwon <[email protected]>
1 parent edcb4fb commit c288a3e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Controller/ApiTablesController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ public function createFromScheme(string $title, string $emoji, string $descripti
158158
numberDecimals: $column['numberDecimals'],
159159
numberPrefix: $column['numberPrefix'],
160160
numberSuffix: $column['numberSuffix'],
161-
selectionOptions: $column['selectionOptions'] == [] ? '' : $column['selectionOptions'],
161+
selectionOptions: $column['selectionOptions'] === [] ? '' : \json_encode($column['selectionOptions'], JSON_THROW_ON_ERROR),
162162
selectionDefault: $column['selectionDefault'],
163163
datetimeDefault: $column['datetimeDefault'],
164164
usergroupDefault: $column['usergroupDefault'][0] ?? '',

0 commit comments

Comments
 (0)