mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-25 20:31:31 +02:00
Fix TypeError: Cannot read property 'view' of undefined when clicking on some calendar favorites
This commit is contained in:
parent
d68349fa1b
commit
dfb1be231d
@ -1080,7 +1080,7 @@ app.classes.calendar = AppJS.extend(
|
|||||||
|
|
||||||
// old calendar state handling on server-side (incl. switching to and from listview)
|
// old calendar state handling on server-side (incl. switching to and from listview)
|
||||||
var menuaction = 'calendar.calendar_uiviews.index';
|
var menuaction = 'calendar.calendar_uiviews.index';
|
||||||
if (typeof state.state != 'undefined' && state.state.view == 'undefined' || state.state.view == 'listview')
|
if (typeof state.state != 'undefined' && (state.state.view == 'undefined' || state.state.view == 'listview'))
|
||||||
{
|
{
|
||||||
// check if we already use et2 / are in listview
|
// check if we already use et2 / are in listview
|
||||||
if (this.et2 || etemplate2 && etemplate2.getByApplication('calendar'))
|
if (this.et2 || etemplate2 && etemplate2.getByApplication('calendar'))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user