From bda34bebd9b263203a448f1b2a68ddf693b4fe78 Mon Sep 17 00:00:00 2001 From: florian <f.spreckelsen@inidscale.com> Date: Wed, 7 Dec 2022 17:30:11 +0100 Subject: [PATCH] DOC: Adapt in-code comments --- src/core/js/ext_prop_display.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/core/js/ext_prop_display.js b/src/core/js/ext_prop_display.js index f644e7cc..f74d7000 100644 --- a/src/core/js/ext_prop_display.js +++ b/src/core/js/ext_prop_display.js @@ -66,9 +66,11 @@ var prop_display = new function ($, edit_mode, getEntityName, getEntityRole, get for (let typeName of Object.keys(conf)) { let typeConf = conf[typeName]; let allNames = allTypes.typesWithChildren[typeName]; - // only hide something if there is a match in at least one parent type + // only change the display something if there is a match in + // at least one parent type if (parents.some(par => allNames.includes(par)) || (getEntityRole(ent) == "RecordType" && allNames.includes(getEntityName(ent)))) { + // first sort the properties this._sortProperties(ent, properties, typeConf); properties.forEach((prop, index) => { if (this._hide_property(getPropertyName(prop), userName, userRoles, typeConf)) { -- GitLab