Restrict vfsSelectUI submit only to the field availability

This commit is contained in:
Hadi Nategh 2017-10-16 15:03:16 +02:00
parent 81edd22253
commit 13635fb5b7

View File

@ -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);