diff --git a/application/controllers/lehre/anrechnung/ApproveAnrechnungDetail.php b/application/controllers/lehre/anrechnung/ApproveAnrechnungDetail.php index 90c105abf..90753b072 100644 --- a/application/controllers/lehre/anrechnung/ApproveAnrechnungDetail.php +++ b/application/controllers/lehre/anrechnung/ApproveAnrechnungDetail.php @@ -247,7 +247,8 @@ class approveAnrechnungDetail extends Auth_Controller 'status_kurzbz' => self::ANRECHNUNGSTATUS_PROGRESSED_BY_LEKTOR, 'status_bezeichnung' => $this->anrechnunglib->getStatusbezeichnung(self::ANRECHNUNGSTATUS_PROGRESSED_BY_LEKTOR), 'empfehlung_anrechnung' => null, - 'empfehlung_angefordert_am' => (new DateTime())->format('d.m.Y') + 'empfehlungsanfrageAm' => (new DateTime())->format('d.m.Y'), + 'empfehlungsanfrageAn' => $empfehlungsanfrage_an ); } } diff --git a/application/controllers/lehre/anrechnung/ApproveAnrechnungUebersicht.php b/application/controllers/lehre/anrechnung/ApproveAnrechnungUebersicht.php index f613c65b0..cf19bef4d 100644 --- a/application/controllers/lehre/anrechnung/ApproveAnrechnungUebersicht.php +++ b/application/controllers/lehre/anrechnung/ApproveAnrechnungUebersicht.php @@ -209,8 +209,8 @@ class approveAnrechnungUebersicht extends Auth_Controller 'status_kurzbz' => self::ANRECHNUNGSTATUS_PROGRESSED_BY_LEKTOR, 'status_bezeichnung' => $this->anrechnunglib->getStatusbezeichnung(self::ANRECHNUNGSTATUS_PROGRESSED_BY_LEKTOR), 'empfehlung_anrechnung' => null, - 'empfehlungsanfrage_am' => (new DateTime())->format('Y-m-d H:i:s'), - 'empfehlungsanfrage_an' => $empfehlungsanfrage_an + 'empfehlungsanfrageAm' => (new DateTime())->format('Y-m-d H:i:s'), + 'empfehlungsanfrageAn' => $empfehlungsanfrage_an ); } } diff --git a/application/controllers/lehre/anrechnung/ReviewAnrechnungDetail.php b/application/controllers/lehre/anrechnung/ReviewAnrechnungDetail.php index 69a60510f..78175f4e6 100644 --- a/application/controllers/lehre/anrechnung/ReviewAnrechnungDetail.php +++ b/application/controllers/lehre/anrechnung/ReviewAnrechnungDetail.php @@ -181,7 +181,7 @@ class reviewAnrechnungDetail extends Auth_Controller 'empfehlung_anrechnung' => 'false', 'status_kurzbz' => self::ANRECHNUNGSTATUS_PROGRESSED_BY_STGL, 'status_bezeichnung' => $this->anrechnunglib->getStatusbezeichnung(self::ANRECHNUNGSTATUS_PROGRESSED_BY_STGL), - 'empfehlumg_am' => (new DateTime())->format('d.m.Y'), + 'empfehlung_am' => (new DateTime())->format('d.m.Y'), 'empfehlung_von' => $person->vorname. ' '. $person->nachname ); } diff --git a/application/libraries/AnrechnungLib.php b/application/libraries/AnrechnungLib.php index cfed6c776..a4fd8690d 100644 --- a/application/libraries/AnrechnungLib.php +++ b/application/libraries/AnrechnungLib.php @@ -224,8 +224,9 @@ class AnrechnungLib $empfehlung_data->empfehlung = null; $empfehlung_data->empfehlung_von = '-'; $empfehlung_data->empfehlung_am = '-'; - $empfehlung_data->empfehlung_angefordert_am = '-'; - $empfehlung_data->notiz = ''; // Begruendung, if not recommended + $empfehlung_data->empfehlungsanfrageAm = '-'; + $empfehlung_data->empfehlungsanfrageAn = '-'; + $empfehlung_data->notiz = '-'; // Begruendung, if not recommended if(!$anrechnung = getData($this->ci->AnrechnungModel->load($anrechnung_id))[0]) @@ -238,9 +239,19 @@ class AnrechnungLib $anrechnung_id, self::ANRECHNUNGSTATUS_PROGRESSED_BY_LEKTOR // when STLG asks for recommendation, status is set to in progress lektor ); - if ($result = getData($result)[0]) + + // If request for recommendation exists + if (hasData($result)) { - $empfehlung_data->empfehlung_angefordert_am = (new DateTime($result->insertamum))->format('d.m.Y'); + $empfehlung_data->empfehlungsanfrageAm = (new DateTime($result->retval[0]->insertamum))->format('d.m.Y'); + + // Get lectors who received request for recommendation + $lector_arr = self::getLectors($anrechnung_id); + + if (!isEmptyArray($lector_arr)) + { + $empfehlung_data->empfehlungsanfrageAn = implode(', ', array_column($lector_arr, 'fullname')); + } } if (is_null($anrechnung->empfehlung_anrechnung)) diff --git a/application/views/lehre/anrechnung/approveAnrechnungDetail.php b/application/views/lehre/anrechnung/approveAnrechnungDetail.php index add07fb71..ac86efd16 100644 --- a/application/views/lehre/anrechnung/approveAnrechnungDetail.php +++ b/application/views/lehre/anrechnung/approveAnrechnungDetail.php @@ -12,7 +12,8 @@ $this->load->view( 'phrases' => array( 'global' => array( 'anerkennungNachgewiesenerKenntnisse', - 'antragStellen' + 'antragStellen', + 'begruendung' ), 'ui' => array( 'hilfeZuDieserSeite', @@ -40,7 +41,9 @@ $this->load->view( 'anrechnung' => array( 'genehmigungAblehnungWirklichZuruecknehmen', 'empfehlungsanforderungWirklichZuruecknehmen', - 'erfolgreichZurueckgenommen' + 'erfolgreichZurueckgenommen', + 'empfehlungPositivConfirmed', + 'empfehlungNegativConfirmed' ) ), 'customCSSs' => array( @@ -151,14 +154,8 @@ $this->load->view( value="anrechnung_id ?>">
| p->t('anrechnung', 'empfehlungsanfrageAm')); ?> | ++ empfehlungsanfrageAm; ?> + | +
| p->t('anrechnung', 'empfehlungsanfrageAn'); ?> | ++ empfehlungsanfrageAn; ?> + | +
| p->t('anrechnung', 'empfehlungdatum')); ?> | +empfehlung_am ?> | +
| p->t('anrechnung', 'empfehlungVon')); ?> | +empfehlung_von ?> | +
| p->t('anrechnung', 'empfehlung'); ?> | ++ |
| p->t('global', 'begruendung'); ?> | ++ notiz) ?> + | +
| p->t('anrechnung', 'empfehlungsanfrageAm')); ?> | ++ empfehlungsanfrageAm; ?> + | +
| p->t('anrechnung', 'empfehlungsanfrageAn'); ?> | ++ empfehlungsanfrageAn; ?> + | +
| p->t('anrechnung', 'empfehlungdatum')); ?> | ++ empfehlung_am ?> + | +
| p->t('anrechnung', 'empfehlungVon')); ?> | ++ empfehlung_von ?> + | +
| p->t('anrechnung', 'empfehlung'); ?> | ++ |
| p->t('global', 'begruendung'); ?> | ++ notiz) ?> + | +