From dffb484fff49e5028ee4e9e8bb0bc1027ddf6e26 Mon Sep 17 00:00:00 2001 From: Yuri Kuznetsov Date: Mon, 17 Jan 2022 13:51:05 +0200 Subject: [PATCH] formula fetch null --- client/src/views/fields/formula.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/client/src/views/fields/formula.js b/client/src/views/fields/formula.js index 9f3f5d4a9b..3e1411da8a 100644 --- a/client/src/views/fields/formula.js +++ b/client/src/views/fields/formula.js @@ -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; },