Skip to content
Snippets Groups Projects

ENH: Allow sorting of properties

Merged Florian Spreckelsen requested to merge f-sort-properties into dev
All threads resolved!
1 file
+ 3
1
Compare changes
  • Side-by-side
  • Inline
+ 3
1
@@ -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)) {
Loading