mirror of
https://github.com/espocrm/espocrm.git
synced 2026-07-01 08:26:04 +00:00
formula fetch null
This commit is contained in:
@@ -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;
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user