Skip to content

Commit

Permalink
Maybe fix ExchangeCalendar#299: correctly handle OnlyShowAvailability…
Browse files Browse the repository at this point in the history
… calendards after reset/restart

Also fix some uninitialized variables
  • Loading branch information
martok committed May 14, 2020
1 parent a36d409 commit fcf7902
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion calendar/interface/exchangeCalendar/mivExchangeCalendar.js
Original file line number Diff line number Diff line change
Expand Up @@ -3093,7 +3093,6 @@ calExchangeCalendar.prototype = {
//var self = this;

if (this.OnlyShowAvailability) {
if (!this.lastValidRangeStart) this.lastValidRangeStart = aRangeStart.clone();
this.getOnlyFreeBusyInformation(this.lastValidRangeStart, this.lastValidRangeEnd);
}
else {
Expand Down Expand Up @@ -4351,6 +4350,9 @@ calExchangeCalendar.prototype = {
this.itemCacheByStartDate = {};
this.itemCacheByEndDate = {};

// Re-evaluate with first request after performStartup()
this.OnlyShowAvailability = false;

for (var index in this.recurringMasterCache) {
if (this.recurringMasterCache[index]) {
this.recurringMasterCache[index].deleteItem();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ jobObject.prototype = {

onRequestError: function _onRequestError(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, job) {
//dump(this.server+":jobObject.onRequestError\n");
this.loadBalancer.logInfo(this.uuid + ":" + this.server + ":jobObject:onRequestError. arg2:" + arg2 + ", arg3:" + arg3);
this.loadBalancer && this.loadBalancer.logInfo(this.uuid + ":" + this.server + ":jobObject:onRequestError. arg2:" + arg2 + ", arg3:" + arg3);
try {
arg1.argument.cbError(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9);
}
Expand Down

0 comments on commit fcf7902

Please sign in to comment.