Do not set editable class to label not linked to field

issue7631
review58381002
This commit is contained in:
Cédric Krier
2018-08-29 09:02:27 +02:00
parent a1232b578f
commit dc0262a4d0
+2 -2
View File
@@ -722,8 +722,8 @@ function eval_pyson(value){
} else {
state_changes = {};
}
if ((field && field.description.readonly) ||
state_changes.readonly) {
if (state_changes.readonly === undefined) {
state_changes.readonly = !field;
}
Sao.common.apply_label_attributes(
this.label_el,