diff --git a/src/widget/date/calendar/popup.year.js b/src/widget/date/calendar/popup.year.js index ad5599c2a8..c77471bc9c 100644 --- a/src/widget/date/calendar/popup.year.js +++ b/src/widget/date/calendar/popup.year.js @@ -131,14 +131,11 @@ BI.YearPopup = BI.inherit(BI.Widget, { var endDate = BI.parseDateTime(o.max, "%Y-%X-%d"); if (BI.checkDateVoid(v, 1, 1, BI.print(BI.getDate(startDate.getFullYear(), 0, 1), "%Y-%X-%d"), BI.print(BI.getDate(endDate.getFullYear(), 0, 1), "%Y-%X-%d"))[0]) { v = BI.getDate().getFullYear(); - this.selectedYear = ""; - this.navigation.setSelect(BI.YearCalendar.getPageByYear(v)); - this.navigation.setValue(""); - } else { - this.selectedYear = v; - this.navigation.setSelect(BI.YearCalendar.getPageByYear(v)); - this.navigation.setValue(v); } + + this.selectedYear = v; + this.navigation.setSelect(BI.YearCalendar.getPageByYear(v)); + this.navigation.setValue(v); } }); BI.YearPopup.EVENT_CHANGE = "EVENT_CHANGE";