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:
@@ -185,7 +185,10 @@ JX.install('TypeaheadSource', {
|
|||||||
this._raw[obj.id] = obj;
|
this._raw[obj.id] = obj;
|
||||||
var t = this.tokenize(obj.tokenizable || obj.name);
|
var t = this.tokenize(obj.tokenizable || obj.name);
|
||||||
for (var jj = 0; jj < t.length; ++jj) {
|
for (var jj = 0; jj < t.length; ++jj) {
|
||||||
this._lookup[t[jj]] = this._lookup[t[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);
|
this._lookup[t[jj]].push(obj.id);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
Reference in New Issue
Block a user