forked from extern/egroupware
Calendar: Fix cdbfcb391
broke planner view
This commit is contained in:
parent
e2a12a7330
commit
4ac8165b7b
@ -196,7 +196,8 @@ var et2_calendar_event = (function(){ "use strict"; return et2_valueWidget.exten
|
|||||||
_UID_callback: function _UID_callback(event) {
|
_UID_callback: function _UID_callback(event) {
|
||||||
// Copy to avoid changes, which may cause nm problems
|
// Copy to avoid changes, which may cause nm problems
|
||||||
var value = event === null ? null : jQuery.extend({},event);
|
var value = event === null ? null : jQuery.extend({},event);
|
||||||
var parent = this._parent;
|
let parent = this.getParent();
|
||||||
|
let parent_owner = parent.getDOMNode(parent).dataset['owner'] || parent.getParent().options.owner;
|
||||||
|
|
||||||
// Make sure id is a string, check values
|
// Make sure id is a string, check values
|
||||||
if(value)
|
if(value)
|
||||||
@ -205,7 +206,7 @@ var et2_calendar_event = (function(){ "use strict"; return et2_valueWidget.exten
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Check for changing days in the grid view
|
// Check for changing days in the grid view
|
||||||
if(!this._sameday_check(value) || !this._status_check(value, app.calendar.getState().status_filter, parent.options.owner))
|
if(!this._sameday_check(value) || !this._status_check(value, app.calendar.getState().status_filter, parent_owner))
|
||||||
{
|
{
|
||||||
// May need to update parent to remove out-of-view events
|
// May need to update parent to remove out-of-view events
|
||||||
parent.removeChild(this);
|
parent.removeChild(this);
|
||||||
|
Loading…
Reference in New Issue
Block a user