mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-06-01 12:19:28 +00:00
Merge branch 'master' into feature-68296/Vue_Router_via_Extensions_erweitern_ma0080
This commit is contained in:
@@ -753,6 +753,10 @@ class Dokumente extends FHCAPI_Controller
|
||||
);
|
||||
|
||||
$data = $this->getDataOrTerminateWithError($result);
|
||||
if(!(is_array($data) && count($data) > 0))
|
||||
{
|
||||
return null;
|
||||
}
|
||||
$student = current($data);
|
||||
|
||||
return $student->student_uid;
|
||||
|
||||
@@ -225,18 +225,32 @@ export default {
|
||||
return events;
|
||||
},
|
||||
studentUids() {
|
||||
if (this.modelValue.uid)
|
||||
if(Array.isArray(this.modelValue))
|
||||
{
|
||||
return this.modelValue.map(e => e.uid);
|
||||
}
|
||||
else if (this.modelValue.uid)
|
||||
{
|
||||
return [this.modelValue.uid];
|
||||
}
|
||||
return this.modelValue.map(e => e.uid);
|
||||
else
|
||||
{
|
||||
return [];
|
||||
}
|
||||
},
|
||||
studentKzs(){
|
||||
if (this.modelValue.uid)
|
||||
if(Array.isArray(this.modelValue))
|
||||
{
|
||||
return this.modelValue.map(e => e.studiengang_kz);
|
||||
}
|
||||
else if (typeof this.modelValue.studiengang_kz !== 'undefined')
|
||||
{
|
||||
return [this.modelValue.studiengang_kz];
|
||||
}
|
||||
return this.modelValue.map(e => e.studiengang_kz);
|
||||
else
|
||||
{
|
||||
return [];
|
||||
}
|
||||
},
|
||||
stg_kz(){
|
||||
return this.studentKzs[0];
|
||||
|
||||
Reference in New Issue
Block a user