From f9296cc4219064393e694e1a54cbc6f992a7d9c7 Mon Sep 17 00:00:00 2001 From: ralf Date: Thu, 29 Aug 2024 16:16:00 +0200 Subject: [PATCH] fix customfield with specified tab was also displayed in the default CF tab and therefore not storing its value --- api/js/etemplate/et2_extension_customfields.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/js/etemplate/et2_extension_customfields.ts b/api/js/etemplate/et2_extension_customfields.ts index aa68ffb281..03a8d09005 100644 --- a/api/js/etemplate/et2_extension_customfields.ts +++ b/api/js/etemplate/et2_extension_customfields.ts @@ -193,9 +193,9 @@ export class et2_customfields_list extends et2_valueWidget implements et2_IDetac for(let field_name in this.options.customfields) { if (exclude.indexOf(field_name) >= 0) continue; - if (this.options.customfields[field_name].tab === this.options.tab) + if (this.options.customfields[field_name].tab) { - this.options.fields[field_name] = true; + this.options.fields[field_name] = this.options.customfields[field_name].tab === this.options.tab; } else if (default_tab) {