formula fetch null

This commit is contained in:
Yuri Kuznetsov
2022-01-17 13:51:05 +02:00
parent 6582917daf
commit dffb484fff

View File

@@ -186,7 +186,13 @@ define('views/fields/formula', 'views/fields/text', function (Dep) {
fetch: function () {
var data = {};
data[this.name] = this.editor.getValue();
let value = this.editor.getValue();
if (value === '') {
value = null;
}
data[this.name] = value;
return data;
},