fixed note init by object/object key on 2nd time opening the details modal in the assistenz view;

This commit is contained in:
Johann Hoffmann
2026-01-21 10:34:17 +01:00
parent 2471d37dd3
commit c9bcf9b9b0
2 changed files with 5 additions and 2 deletions
@@ -142,7 +142,6 @@ class Abgabe extends FHCAPI_Controller
$zugeordnet = $this->checkZuordnung($projektarbeit_id, getAuthUID());
if(getAuthUID() == $student_uid || $zugeordnet) {
$projektarbeitIsCurrent = false;
$returnFunc = function ($result) use (&$projektarbeitIsCurrent) {
$projektarbeitIsCurrent = $result;
@@ -825,6 +824,7 @@ class Abgabe extends FHCAPI_Controller
$tomail,
$subject
);
}
/**
@@ -687,7 +687,10 @@ export const AbgabetoolAssistenz = {
// pa.isCurrent = res.data[1]
pa.abgabetermine.forEach(termin => {
termin.note = this.allowedNotenOptions.find(opt => opt.note == termin.note)
if(typeof termin.note !== 'object') {
termin.note = this.allowedNotenOptions.find(opt => opt.note == termin.note)
}
termin.file = []
// assistenz should be able to edit every abgabe