From 9b6e6ad8195744871deeb0952245b9ea48c37bf8 Mon Sep 17 00:00:00 2001 From: ralf Date: Tue, 3 May 2022 09:12:20 +0200 Subject: [PATCH] fix empty date customfield caused by not set app-name, defaulting to currentapp now --- api/src/Etemplate/Widget/Customfields.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/src/Etemplate/Widget/Customfields.php b/api/src/Etemplate/Widget/Customfields.php index 45ca5d0aa7..aa795cfd0a 100644 --- a/api/src/Etemplate/Widget/Customfields.php +++ b/api/src/Etemplate/Widget/Customfields.php @@ -391,7 +391,7 @@ class Customfields extends Transformer { $form_name = self::form_name($cname, $this->id, $expand); $value =& $this->get_array($data, $form_name, true); - $customfields = Api\Storage\Customfields::get($this->attrs['app']); + $customfields = Api\Storage\Customfields::get($this->attrs['app'] ?? $GLOBALS['egw_info']['flags']['currentapp']); foreach($customfields as $field_name => $field) { @@ -490,4 +490,4 @@ class Customfields extends Transformer //error_log(__METHOD__."() $form_name $field: ".array2string($value).' --> '.array2string($value)); } } -} +} \ No newline at end of file