From 02b23434bb56ae66ce255dfe3c39aa7b8c35d320 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 0103c23d73..ce53bcddd5 100644 --- a/api/js/etemplate/et2_extension_customfields.ts +++ b/api/js/etemplate/et2_extension_customfields.ts @@ -369,7 +369,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]}; }