From c8fefbf573bafbfabc3e0cc467cb8bf5542aadcb Mon Sep 17 00:00:00 2001 From: ralf Date: Sat, 30 Mar 2024 08:59:52 +0200 Subject: [PATCH] WIP allow to place custom-fields in tabs: new cf type serial uses values for the start-value / no array --- api/src/Etemplate/Widget/Customfields.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/api/src/Etemplate/Widget/Customfields.php b/api/src/Etemplate/Widget/Customfields.php index 71fa4a47be..93e2cb7e15 100644 --- a/api/src/Etemplate/Widget/Customfields.php +++ b/api/src/Etemplate/Widget/Customfields.php @@ -259,7 +259,10 @@ class Customfields extends Transformer ['download' => $stat['mtime']] ); } - Select::fix_encoded_options($data['values']); + if (is_array($data['values'])) + { + Select::fix_encoded_options($data['values']); + } } } if($fields != $customfields)