Calendar: Fix resource rows were missing in planner by user

This commit is contained in:
nathangray 2020-08-06 13:20:25 -06:00
parent 29b22e336e
commit ad7b0a2696
2 changed files with 2 additions and 2 deletions

View File

@ -124,7 +124,7 @@ var et2_calendar_planner = /** @class */ (function (_super) {
this.invalidate(); this.invalidate();
}, this); }, this);
} }
else if (already_added.indexOf('' + user) < 0 && parseInt(user) >= 0) { else if (already_added.indexOf('' + user) < 0 && (isNaN(user) || parseInt(user) >= 0)) {
labels.push({ labels.push({
id: user, id: user,
label: this._get_owner_name(user), label: this._get_owner_name(user),

View File

@ -453,7 +453,7 @@ export class et2_calendar_planner extends et2_calendar_view implements et2_IDeta
this.invalidate(); this.invalidate();
},this); },this);
} }
else if(already_added.indexOf(''+user) < 0 && parseInt(user) >= 0) else if(already_added.indexOf(''+user) < 0 && (isNaN(user) || parseInt(user) >= 0))
{ {
labels.push({ labels.push({
id: user, id: user,