Make sure week labels with unknown users get updated when the names come back from the server

This commit is contained in:
nathangray 2019-05-02 11:20:38 -06:00
parent f7c9d9c5d5
commit 6ff2ba8f23

View File

@ -376,6 +376,12 @@ var et2_calendar_view = (function(){ "use strict"; return et2_valueWidget.extend
egw.jsonq('calendar_owner_etemplate_widget::ajax_owner',user,function(data) { egw.jsonq('calendar_owner_etemplate_widget::ajax_owner',user,function(data) {
et2_calendar_view.owner_name_cache[user] = data; et2_calendar_view.owner_name_cache[user] = data;
this.invalidate(true); this.invalidate(true);
// Set owner to make sure labels get set
if(this.owner && typeof this.owner.set_value === 'function')
{
this.owner.set_value(data);
}
}.bind(this), this); }.bind(this), this);
} }
} }