bugfix: advanced search

- dates "<=" operator handling

SVN:trunk[5713]
This commit is contained in:
Bruno Da Silva
2018-04-20 15:06:28 +00:00
parent 256808c473
commit c5f00c5363

View File

@@ -54,13 +54,29 @@ $(function()
]
},
_create: function() {
var me = this;
//let's hack the <= operator in order to fall back on the only one that matter here : `between_dates`
if ('<=' == me.options.operator && me.options.values.constructor === Array)
{
me.options.operator = 'between_dates';
me.options.values.unshift({"label":'', "value":''});
}
else if ('>=' == me.options.operator)
{
me.options.operator = 'between_dates';
}
me._superApply(arguments);
},
// Prepare operator's DOM element
// Prepare operator's DOM element
_prepareBetweenDaysOperator: function(oOpElem, sOpIdx, oOp)
{
var me = this;