From bc4c790dc01a91c43ff58eb2ce3e5a2b3a9683db Mon Sep 17 00:00:00 2001 From: nathan Date: Thu, 9 Nov 2023 11:42:04 -0700 Subject: [PATCH] Api: Fix no customfields shown if there was an extra comma in field attribute --- api/src/Etemplate/Widget/Customfields.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/src/Etemplate/Widget/Customfields.php b/api/src/Etemplate/Widget/Customfields.php index 1d9fefc56d..ed29a7847e 100644 --- a/api/src/Etemplate/Widget/Customfields.php +++ b/api/src/Etemplate/Widget/Customfields.php @@ -158,7 +158,7 @@ class Customfields extends Transformer $f= substr($f,1); $negate_fields[]= $f; } - else + elseif(trim($f)) { $field_filters [] = $f; }