From c288a3ecb9d64e8f18126b517a68f414e5628d2f Mon Sep 17 00:00:00 2001 From: Arthur Schiwon Date: Wed, 25 Sep 2024 15:59:45 +0200 Subject: [PATCH] fix(Import): convert selectionOptions from import to a json string Signed-off-by: Arthur Schiwon --- lib/Controller/ApiTablesController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Controller/ApiTablesController.php b/lib/Controller/ApiTablesController.php index 9c5ed7ed0..383bb90da 100644 --- a/lib/Controller/ApiTablesController.php +++ b/lib/Controller/ApiTablesController.php @@ -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] ?? '',