mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-23 01:42:17 +00:00
- fix error with Event 'multiActionPrintHonorarvertrag'
- Naming components Vertragsverwaltung, MitarbeiterHeader, CoreListMitarbeiter - link to Vorgesetzter, show Vorgesetzter without postTitel - Foto: if foto_sperre: show foto with lock
This commit is contained in:
@@ -37,6 +37,7 @@ class Config extends FHCAPI_Controller
|
||||
public function printDocument()
|
||||
{
|
||||
$params = [];
|
||||
$menu = [];
|
||||
|
||||
Events::trigger(
|
||||
'multiActionPrintHonorarvertrag',
|
||||
@@ -47,7 +48,15 @@ class Config extends FHCAPI_Controller
|
||||
$params
|
||||
);
|
||||
|
||||
//TODO(Manu) check warning
|
||||
$this->terminateWithSuccess($menu[0]);
|
||||
if (is_array($menu) && isset($menu[0]))
|
||||
{
|
||||
$this->terminateWithSuccess($menu[0]);
|
||||
}
|
||||
else
|
||||
{
|
||||
// $this->terminateWithError('Error with Event 'multiActionPrintHonorarvertrag');
|
||||
$this->terminateWithSuccess();
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user