mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-20 00:12:15 +00:00
fixed note init by object/object key on 2nd time opening the details modal in the assistenz view;
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user