Calendar - fix some bugs in readonly mode:

- missing participant widget would fail
- read-only end date would cause error
This commit is contained in:
nathangray 2017-11-03 14:38:51 -06:00
parent 3eb609f619
commit 3ae7fc77b6

View File

@ -1070,7 +1070,7 @@ app.classes.calendar = (function(){ "use strict"; return AppJS.extend(
if(widget)
{
var recur_end = widget.getRoot().getWidgetById('recur_enddate');
if(recur_end && !recur_end.getValue())
if(recur_end && recur_end.getValue && !recur_end.getValue())
{
recur_end.set_min(widget.getValue());
}
@ -1119,6 +1119,7 @@ app.classes.calendar = (function(){ "use strict"; return AppJS.extend(
if(typeof widget === 'undefined') widget = input;
var content = widget.getInstanceManager().getValues(widget.getRoot());
var participant = widget.getRoot().getWidgetById('participant');
if(!participant) return;
participant.set_autocomplete_params({exec:{
start: content.start,