Fix calendar entries opened from mail using a link could not be edited

This commit is contained in:
nathangray 2017-07-27 13:28:37 -06:00
parent 73e4a9ce01
commit 4f61bc073d
2 changed files with 12 additions and 0 deletions

View File

@ -506,6 +506,17 @@ class Etemplate extends Etemplate\Widget\Template
{ {
$this->dom_id = $new_id; $this->dom_id = $new_id;
} }
/**
* Make sure there's a new request, in case of multiple Etemplates in one call.
* Normally this isn't a problem, but if you've got an etemplate in the sidebox,
* and are seeing problems submitting another etemplate, try this before executing
* the sidebox etemplate.
*/
public static function reset_request()
{
self::$request = Etemplate\Request::read();
}
/** /**
* Get template data as array * Get template data as array
* *

View File

@ -553,6 +553,7 @@ class calendar_ui
$this->merge(); $this->merge();
return; return;
} }
Etemplate::reset_request();
$sidebox = new Etemplate('calendar.sidebox'); $sidebox = new Etemplate('calendar.sidebox');
$cont = $this->cal_prefs['saved_states']; $cont = $this->cal_prefs['saved_states'];