status field locked
This commit is contained in:
@@ -12,5 +12,6 @@
|
||||
"notifications": true,
|
||||
"activityStatusList": ["Planned"],
|
||||
"historyStatusList": ["Held", "Not Held"],
|
||||
"statusField": "status"
|
||||
}
|
||||
"statusField": "status",
|
||||
"statusFieldLocked": true
|
||||
}
|
||||
|
||||
@@ -13,5 +13,6 @@
|
||||
"object": true,
|
||||
"activityStatusList": ["Planned"],
|
||||
"historyStatusList": ["Held", "Not Held"],
|
||||
"statusField": "status"
|
||||
"statusField": "status",
|
||||
"statusFieldLocked": true
|
||||
}
|
||||
|
||||
@@ -14,5 +14,6 @@
|
||||
"object": true,
|
||||
"activityStatusList": ["Planned"],
|
||||
"historyStatusList": ["Held", "Not Held"],
|
||||
"statusField": "status"
|
||||
"statusField": "status",
|
||||
"statusFieldLocked": true
|
||||
}
|
||||
|
||||
@@ -15,5 +15,6 @@
|
||||
"object": true,
|
||||
"statusField": "status",
|
||||
"stream": true,
|
||||
"kanbanStatusIgnoreList": ["Canceled", "Deferred"]
|
||||
"kanbanStatusIgnoreList": ["Canceled", "Deferred"],
|
||||
"statusFieldLocked": true
|
||||
}
|
||||
|
||||
@@ -390,6 +390,10 @@ class EntityManager
|
||||
|
||||
$isCustom = $this->metadata->get(['scopes', $name, 'isCustom']);
|
||||
|
||||
if ($this->metadata->get(['scopes', $name, 'statusFieldLocked'])) {
|
||||
unset($data['statusField']);
|
||||
}
|
||||
|
||||
$initialData = [
|
||||
'optimisticConcurrencyControl' =>
|
||||
$this->metadata->get(['entityDefs', $name, 'optimisticConcurrencyControl']) ?? false,
|
||||
|
||||
@@ -426,6 +426,10 @@ function (Dep, Model) {
|
||||
},
|
||||
};
|
||||
|
||||
if (this.getMetadata().get(['scopes', this.scope, 'statusFieldLocked'])) {
|
||||
defs.fields.statusField.readOnly = true;
|
||||
}
|
||||
|
||||
for (let param in this.additionalParams) {
|
||||
defs.fields[param] = this.additionalParams[param].fieldDefs;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user