Modified to update Zeugnisnote, if already exists

During approving process the zeugnisnote is set to 6 (angerechnet).
If zeugnisnote already exists, it will be updated now.

Signed-off-by: cris-technikum <[email protected]>
This commit is contained in:
Cris
2021-01-28 11:28:44 +01:00
committed by cris-technikum
parent 6a37c71cfc
commit 8d09ee7299
4 changed files with 57 additions and 10 deletions
@@ -1,6 +1,6 @@
<?php
//if (! defined('BASEPATH')) exit('No direct script access allowed');
if (! defined('BASEPATH')) exit('No direct script access allowed');
class approveAnrechnungUebersicht extends Auth_Controller
{
@@ -1,6 +1,6 @@
<?php
//if (! defined('BASEPATH')) exit('No direct script access allowed');
if (! defined('BASEPATH')) exit('No direct script access allowed');
class requestAnrechnung extends Auth_Controller
{
@@ -94,6 +94,9 @@ class requestAnrechnung extends Auth_Controller
$this->load->view('lehre/anrechnung/requestAnrechnung.php', $viewData);
}
/**
* Apply Anrechnungsantrag and send to STGL
*/
public function apply()
{
$anmerkung = $this->input->post('anmerkung');
@@ -1,6 +1,6 @@
<?php
//if (! defined('BASEPATH')) exit('No direct script access allowed');
if (! defined('BASEPATH')) exit('No direct script access allowed');
class reviewAnrechnungUebersicht extends Auth_Controller
{
@@ -213,6 +213,12 @@ class reviewAnrechnungUebersicht extends Auth_Controller
if (!$this->_uid) show_error('User authentification failed');
}
/**
* Send mails to STGL (if not present then to STGL assistance)
* @param $mail_params
* @param $empfehlung
* @return bool
*/
private function _sendSanchoMails($mail_params, $empfehlung)
{
// Get studiengaenge