search widget : delete the "oql" parameter once the widget is modified

SVN:b1162[5463]
This commit is contained in:
Bruno Da Silva
2018-03-20 10:04:33 +00:00
parent 87c5ee67c0
commit d04fb645ec

View File

@@ -242,10 +242,17 @@ $(function()
// Update widget
this.options.operator = oActiveOpElem.find('.sfc_op_radio').val();
this.options.values = aValues;
this._setTitle();
if (JSON.stringify(this.options.values) != JSON.stringify(aValues))
{
this.is_modified = true;
this.options.oql = '';
this.options.values = aValues;
this._setTitle();
}
this._unmarkAsDraft();
// Trigger event to handler
this.handler.triggerHandler('itop.search.criteria.value_changed');
},