Search: Fix search submit after closing an empty criterion

This commit is contained in:
Molkobain
2018-11-16 11:36:33 +01:00
parent 9169cced20
commit fb233709e0

View File

@@ -289,16 +289,17 @@ $(function()
// Update widget
this.options.operator = oActiveOpElem.find('.sfc_op_radio').val();
// TODO: Better modification check. The previous if has been removed as it caused a regression.
this.is_modified = true;
this.options.oql = '';
this.options.values = aValues;
this._setTitle();
this._unmarkAsDraft();
if(this._getValuesAsText() != this._getValuesAsText(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');
// Trigger event to handler
this.handler.triggerHandler('itop.search.criteria.value_changed');
}
},