Skip to content

Commit

Permalink
Changed fallback Add/Edit-Pages when no JumpTo page is selected
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielGausi committed Nov 2, 2018
1 parent a77b3d8 commit f3e57d1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/Resources/contao/modules/ListAllEvents_Hook.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,13 +85,13 @@ public function updateAllEvents($arrEvents, $arrCalendars, $intStart, $intEnd, $
$JumpPages[$currentPID] = $this->generateFrontendUrl($objPage->row(), '');
}
else {
$JumpPages[$currentPID] = $this->Environment->request;
$JumpPages[$currentPID] = ''; //$this->Environment->request;
}
} else {
// no editing allowed in this calendar
$UserIsAdminForCalendar[$currentPID] = false;
$UserIsMemberForCalendar[$currentPID] = false;
$JumpPages[$currentPID] = $this->Environment->request;
$JumpPages[$currentPID] = ''; //$this->Environment->request;
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/Resources/contao/modules/ModuleCalenderEdit.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ protected function compileWeeks()
$addUrl = $this->generateFrontendUrl($objPage->row(), '');
}
else {
$addUrl = $this->Environment->request;
$addUrl = ''; //$this->Environment->request;
}
}
$intYear = date('Y', $this->Date->tstamp);
Expand Down
2 changes: 1 addition & 1 deletion src/Resources/contao/modules/ModuleEventReaderEdit.php
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ protected function compile()
$strUrl = $this->generateFrontendUrl($objPage->row(), '');
}
else {
$strUrl = $this->Environment->request;
$strUrl = '';//$this->Environment->request;
}

$this->Template->editRef = $strUrl.'?edit='.$objEvent->id;
Expand Down

0 comments on commit f3e57d1

Please sign in to comment.