fix: [UI] Show correct menu for EventsController::importModule action

pull/6698/head
Jakub Onderka 2020-12-05 20:44:55 +01:00
parent 361131073b
commit 7d5691d0c8
1 changed files with 2 additions and 1 deletions

View File

@ -2179,7 +2179,7 @@ class EventsController extends AppController
}
}
}
$target_event = $this->Event->fetchSimpleEvent($this->Auth->user(), $target_id, ['contain' => ['Orgc']);
$target_event = $this->Event->fetchSimpleEvent($this->Auth->user(), $target_id, ['contain' => ['Orgc']]);
if (empty($target_event)) {
throw new NotFoundException(__('Invalid target event.'));
}
@ -5113,6 +5113,7 @@ class EventsController extends AppController
$this->set('module', $module);
$this->set('eventId', $eventId);
$this->set('event', $event);
$this->set('mayModify', $this->__canModifyEvent($event));
}
public function exportModule($module, $id, $standard = false)