mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-10-12 15:04:04 +00:00
Merge branch 'cis40_2026-05_ma_rc_routerlink_ma0080' into cis40_2026-05_ma_rc_routerlink
This commit is contained in:
@@ -83,7 +83,7 @@ class CisMenu extends FHCAPI_Controller
|
||||
return site_url("/CisVue/Cms/content/" . $menuItem->content_id);
|
||||
}
|
||||
|
||||
if (!$menuItem->content || !mb_strlen($menuItem->content)) {
|
||||
if (!isset($menuItem->content) || !$menuItem->content || !mb_strlen($menuItem->content)) {
|
||||
return '';
|
||||
}
|
||||
|
||||
|
||||
@@ -155,7 +155,7 @@ class MaZeitsperren extends FHCAPI_Controller
|
||||
{
|
||||
$this->terminateWithError($this->p->t('ui', 'error_missingId', ['id'=> 'Mitarbeiter UID']), self::ERROR_TYPE_GENERAL);
|
||||
}
|
||||
$this->load->model('ressource/Person_model', 'PersonModel');
|
||||
$this->load->model('person/Person_model', 'PersonModel');
|
||||
$result = $this->PersonModel->getFullName($uid);
|
||||
|
||||
$data = $this->getDataOrTerminateWithError($result);
|
||||
|
||||
@@ -60,7 +60,22 @@ export default {
|
||||
"/Cis/Profil/View/" + data.uid;
|
||||
}
|
||||
},
|
||||
childactions: []
|
||||
childactions: [
|
||||
{
|
||||
label: Vue.computed(() => this.$p.t("profil/zeitsperren")),
|
||||
icon: "fas fa-calendar-days",
|
||||
type: "link",
|
||||
action: function (data) {
|
||||
const uid = JSON.parse(data.data).uid;
|
||||
const link =
|
||||
FHC_JS_DATA_STORAGE_OBJECT.app_root +
|
||||
FHC_JS_DATA_STORAGE_OBJECT.ci_router +
|
||||
"/Cis/Zeitsperrenma/ma/" +
|
||||
uid;
|
||||
return link;
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
student: {
|
||||
defaultaction: {
|
||||
|
||||
Reference in New Issue
Block a user