From 335b66612c13876281bb991f8e843bf08811e320 Mon Sep 17 00:00:00 2001 From: ralf Date: Fri, 3 May 2024 11:50:41 +0200 Subject: [PATCH] fix empty customfields tab after performance fix --- api/js/etemplate/et2_extension_customfields.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/js/etemplate/et2_extension_customfields.ts b/api/js/etemplate/et2_extension_customfields.ts index 5d070838bd..2a8bc86c15 100644 --- a/api/js/etemplate/et2_extension_customfields.ts +++ b/api/js/etemplate/et2_extension_customfields.ts @@ -454,7 +454,7 @@ export class et2_customfields_list extends et2_valueWidget implements et2_IDetac for(let key in data) { // Don't overwrite fields / customfields with global values - if(global_data[key] && key !== 'fields' && !(key == "customfields" && typeof data.customfields != undefined)) + if (global_data[key] && key !== 'fields' && (key !== "customfields" || !Object.keys(data.customfields).length)) { data[key] = {...data[key], ...global_data[key]}; }