Calendar: Fix bug preventing yearly planner from loading

This commit is contained in:
nathangray 2020-05-19 09:02:03 -06:00
parent 87ef3d4a09
commit 49dbd89afb
2 changed files with 2 additions and 2 deletions

View File

@ -171,7 +171,7 @@ var et2_calendar_event = /** @class */ (function (_super) {
var value = event === null ? null : jQuery.extend({}, event);
var parent = this.getParent();
var parent_owner = parent.getDOMNode(parent).dataset['owner'] || parent.getParent().options.owner;
if (parent_owner.indexOf(',')) {
if (parent_owner.indexOf(',') >= 0) {
parent_owner = parent_owner.split(',');
}
// Make sure id is a string, check values

View File

@ -211,7 +211,7 @@ export class et2_calendar_event extends et2_valueWidget implements et2_IDetached
const value = event === null ? null : jQuery.extend({}, event);
let parent = <et2_DOMWidget>this.getParent();
let parent_owner = parent.getDOMNode(parent).dataset['owner'] || parent.getParent().options.owner;
if(parent_owner.indexOf(','))
if(parent_owner.indexOf(',') >= 0)
{
parent_owner = parent_owner.split(',');
}