Commit 34c85f43 authored by Dmitry.Shahtanov's avatar Dmitry.Shahtanov

fix: Bug 27782 - Формулы при проверке значений в ячейках чувствительны к регистру

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@60959 954022d7-b5bf-4e40-9824-e11837661b57
parent 7533eeeb
...@@ -53,8 +53,8 @@ Date.prototype.isLeapYear = function () { ...@@ -53,8 +53,8 @@ Date.prototype.isLeapYear = function () {
Date.prototype.getDaysInMonth = function () { Date.prototype.getDaysInMonth = function () {
// return arguments.callee[this.isLeapYear() ? 'L' : 'R'][this.getMonth()]; // return arguments.callee[this.isLeapYear() ? 'L' : 'R'][this.getMonth()];
return this.isLeapYear() ? return this.isLeapYear() ?
this.getDaysInMonth.L[this.getMonth()] : this.getDaysInMonth.L[this.getUTCMonth()] :
this.getDaysInMonth.R[this.getMonth()]; this.getDaysInMonth.R[this.getUTCMonth()];
}; };
// durations of months for the regular year // durations of months for the regular year
...@@ -2190,7 +2190,7 @@ _func[cElementType.string][cElementType.string] = function ( arg0, arg1, what ) ...@@ -2190,7 +2190,7 @@ _func[cElementType.string][cElementType.string] = function ( arg0, arg1, what )
return new cBool( arg0.getValue() <= arg1.getValue() ); return new cBool( arg0.getValue() <= arg1.getValue() );
} }
else if ( what === "=" ) { else if ( what === "=" ) {
return new cBool( arg0.getValue() === arg1.getValue() ); return new cBool( arg0.getValue().toLowerCase() === arg1.getValue().toLowerCase() );
} }
else if ( what === "<>" ) { else if ( what === "<>" ) {
return new cBool( arg0.getValue() !== arg1.getValue() ); return new cBool( arg0.getValue() !== arg1.getValue() );
......
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