From 13635fb5b7c56df46d3998384784d0703411271d Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Mon, 16 Oct 2017 15:03:16 +0200 Subject: [PATCH] Restrict vfsSelectUI submit only to the field availability --- api/js/etemplate/vfsSelectUI.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/js/etemplate/vfsSelectUI.js b/api/js/etemplate/vfsSelectUI.js index 2668d9765c..3808ea5281 100644 --- a/api/js/etemplate/vfsSelectUI.js +++ b/api/js/etemplate/vfsSelectUI.js @@ -294,7 +294,7 @@ app.classes.vfsSelectUI = (function(){ "use strict"; return AppJS.extend( submit: function(_field, _val, _callback) { var arrMgrs = this.et2.getArrayMgrs(); - if (_field && _val) + if (_field) { arrMgrs.content.data[_field] = _val; jQuery.extend(arrMgrs.content.data, arrMgrs.modifications.data);