Fix T37441: Could not assign tasks to self (via the "Assigned To" box)

Issue was caused by our database having login "watch" which is
apparently an object's method in firefox.

Added workaround for this into the code.
This commit is contained in:
2013-11-14 21:24:26 +06:00
parent 10e353b090
commit cf4b1317e1

View File

@@ -185,6 +185,9 @@ JX.install('TypeaheadSource', {
this._raw[obj.id] = obj;
var t = this.tokenize(obj.tokenizable || obj.name);
for (var jj = 0; jj < t.length; ++jj) {
if (typeof this._lookup[t[jj]] == "function")
this._lookup[t[jj]] = [];
else
this._lookup[t[jj]] = this._lookup[t[jj]] || [];
this._lookup[t[jj]].push(obj.id);
}