mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-21 17:48:43 +02:00
Search: Fix search submit after closing an empty criterion
This commit is contained in:
@@ -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');
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user