Commit 4bc232cd authored by fajfa's avatar fajfa
Browse files

Provide a way to edit ownedBy in record editor

No related merge requests found
......@@ -85,11 +85,18 @@ export default {
value: {
get () {
if (this.field.isSystem) {
return this.record[this.field.name]
}
return this.record.values[this.field.name]
},
set (value) {
this.record.values[this.field.name] = value
if (this.field.isSystem) {
this.record[this.field.name] = value
} else {
this.record.values[this.field.name] = value
}
},
},
......
......@@ -138,7 +138,7 @@ export default {
isFieldEditable (field) {
return field &&
field.canUpdateRecordValue &&
!field.isSystem &&
(!field.isSystem || field.name === 'ownedBy') &&
!(
field.expressions &&
field.expressions.value
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment