fix bug in archiv tab

This commit is contained in:
Harald Bamberger
2026-03-11 11:50:09 +01:00
parent d35eca919f
commit 5ce0232890
2 changed files with 22 additions and 4 deletions
@@ -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];