From 6897cffdc7f0da923beb96c4492177495f6fd46d Mon Sep 17 00:00:00 2001 From: nathangray Date: Fri, 24 Jun 2016 10:44:33 -0600 Subject: [PATCH] Append calendar owner ID to cache ID without regard for current state. Fixes some problems where entries would go missing or show in the wrong date when you changed the selected owner. --- calendar/js/app.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/calendar/js/app.js b/calendar/js/app.js index d55e76affe..91bb5b4af3 100644 --- a/calendar/js/app.js +++ b/calendar/js/app.js @@ -3684,9 +3684,8 @@ jQuery.extend(app.classes.calendar,{ date = date.getUTCFullYear() + sprintf('%02d',date.getUTCMonth()+1) + sprintf('%02d',date.getUTCDate()); } - // If the owner is not set, 0, or the current user, don't bother adding it - var state_owner = app.calendar ? app.calendar.state.owner.toString() || '' : ''; - var _owner = (owner && owner.toString() != '0' && owner !== state_owner) ? owner.toString() : ''; + // If the owner is not set, 0, or the current user, don't bother adding it + var _owner = (owner && owner.toString() != '0') ? owner.toString() : ''; if(_owner == egw.user('account_id')) { _owner = '';