Commit 7e8d9865 authored by GoshaZotov's avatar GoshaZotov

fix bug 32805

parent 524bbd81
...@@ -5591,12 +5591,19 @@ Filters.prototype.init = function(obj) { ...@@ -5591,12 +5591,19 @@ Filters.prototype.init = function(obj) {
{ {
if(obj.values[i].isDateFormat) if(obj.values[i].isDateFormat)
{ {
var dateGroupItem = new DateGroupItem(); if(obj.values[i].text === "")
var autoFilterDateElem = new AutoFilterDateElem(obj.values[i].val, obj.values[i].val, 1); {
dateGroupItem.convertRangeToDateGroupItem(autoFilterDateElem); this.Blank = true;
autoFilterDateElem.convertDateGroupItemToRange(dateGroupItem); }
else
this.Dates.push(autoFilterDateElem); {
var dateGroupItem = new DateGroupItem();
var autoFilterDateElem = new AutoFilterDateElem(obj.values[i].val, obj.values[i].val, 1);
dateGroupItem.convertRangeToDateGroupItem(autoFilterDateElem);
autoFilterDateElem.convertDateGroupItemToRange(dateGroupItem);
this.Dates.push(autoFilterDateElem);
}
} }
else else
{ {
...@@ -5618,15 +5625,26 @@ Filters.prototype.isHideValue = function(val, isDateTimeFormat) { ...@@ -5618,15 +5625,26 @@ Filters.prototype.isHideValue = function(val, isDateTimeFormat) {
var res = false; var res = false;
if(isDateTimeFormat && this.Dates) if(isDateTimeFormat && this.Dates)
res = this.binarySearch(val, this.Dates) !== -1 ? false : true; {
if(val === "")
{
res = !this.Blank ? true : false;
}
else
{
res = this.binarySearch(val, this.Dates) !== -1 ? false : true;
}
}
else if(this.Values) else if(this.Values)
{ {
if(val === "") if(val === "")
{ {
res = !this.Blank ? true : false; res = !this.Blank ? true : false;
} }
else else
{
res = !this.lowerCaseValues[val] ? true : false; res = !this.lowerCaseValues[val] ? true : false;
}
} }
return res; return res;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment