Commit daecd29f authored by Alexander.Trofimov's avatar Alexander.Trofimov

fix bug #28282

При автодополнении отсекаем одинаковые варианты с разным регистром

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@60953 954022d7-b5bf-4e40-9824-e11837661b57
parent ce937113
......@@ -10337,14 +10337,17 @@
WorksheetView.prototype.getColValues = function (range, col, arrValues, objValues) {
if (null === range)
return;
var row, cell, value;
var row, cell, value, valueLowCase;
for (row = range.r1; row <= range.r2; ++row) {
cell = this.model._getCellNoEmpty(row, col);
if (cell) {
value = cell.getValue();
if (!isNumber(value) && !objValues.hasOwnProperty(value)) {
if (!isNumber(value)) {
valueLowCase = value.toLowerCase();
if (!objValues.hasOwnProperty(valueLowCase)) {
arrValues.push(value);
objValues[value] = 1;
objValues[valueLowCase] = 1;
}
}
}
}
......
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