* 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 bf21bbb4a7
commit de65b96c28

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)
{
// 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)
{
this.options.fields[field_name] = false;