* All apps: fix private custom-fields were shown independent of entry type-filter, if user was allowed to see the field

This commit is contained in:
ralf 2024-10-14 17:07:11 +02:00
parent 4fc96ee8b7
commit f58e2a0ace

View File

@ -214,6 +214,9 @@ export class et2_customfields_list extends et2_valueWidget implements et2_IDetac
{ {
for(let field_name in this.options.customfields) for(let field_name in this.options.customfields)
{ {
// check if we have a type-filter and field does NOT match it --> ignore / skip field
if (this.options.type_filter && this.options.fields[field_name] !== true) continue;
if (exclude.indexOf(field_name) >= 0) if (exclude.indexOf(field_name) >= 0)
{ {
this.options.fields[field_name] = false; this.options.fields[field_name] = false;