Consider Dict Char entries set to None as set to ""
issue10485 review346431002
This commit is contained in:
1 parent
c0bf408175
commit
e6ad6f4d76
1 file changed
+8
-1
+8
-1
@@ -4778,7 +4778,6 @@ function eval_pyson(value){
|
||||
});
|
||||
|
||||
Sao.View.Form.Dict.Entry = Sao.class_(Object, {
|
||||
class_: 'dict-char',
|
||||
init: function(name, parent_widget) {
|
||||
this.name = name;
|
||||
this.definition = parent_widget.field.keys[name];
|
||||
@@ -4828,6 +4827,14 @@ function eval_pyson(value){
|
||||
}
|
||||
});
|
||||
|
||||
Sao.View.Form.Dict.Char = Sao.class_(Sao.View.Form.Dict.Entry, {
|
||||
class_: 'dict-char',
|
||||
modified: function(value) {
|
||||
return (JSON.stringify(this.get_value()) !=
|
||||
JSON.stringify(value[this.name] || ""));
|
||||
}
|
||||
});
|
||||
|
||||
Sao.View.Form.Dict.Boolean = Sao.class_(Sao.View.Form.Dict.Entry, {
|
||||
class_: 'dict-boolean',
|
||||
create_widget: function() {
|
||||
|
||||
Reference in new issue
Block a user