mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-16 22:42:16 +00:00
send to all private email addresses marked as zustellung
This commit is contained in:
@@ -57,7 +57,7 @@ $config['wiederholung_note_nicht_zugelassen'] = 20;
|
||||
* @var string A string formated as PHP DateTime modifier
|
||||
* @see https://www.php.net/manual/de/datetime.modify.php
|
||||
*/
|
||||
$config['unterbrechung_job_remind_wiedereinstieg_date_modifier'] = '+166 days';
|
||||
$config['unterbrechung_job_remind_wiedereinstieg_date_modifier'] = '+3 days';
|
||||
|
||||
/**
|
||||
* The Job will sent a request to everyone who faild the 3rd committee exam
|
||||
|
||||
@@ -265,22 +265,26 @@ class AntragJob extends JOB_Controller
|
||||
$person_id = $dataPrestudent->person_id;
|
||||
|
||||
$this->KontaktModel->addSelect('kontakt');
|
||||
$this->KontaktModel->addLimit(1);
|
||||
|
||||
$result = $this->KontaktModel->loadWhere([
|
||||
'person_id'=> $person_id,
|
||||
'zustellung' => true,
|
||||
'kontakttyp' => 'email'
|
||||
]);
|
||||
if (hasData($result)) {
|
||||
$dataKontakt = current(getData($result));
|
||||
$email_student_privat = $dataKontakt->kontakt;
|
||||
|
||||
$email_student_privat = null;
|
||||
$dataKontakt = getData($result);
|
||||
if ($dataKontakt) {
|
||||
$stud_private_zustell_emails = array_map(function($kontakt) {
|
||||
return $kontakt->kontakt;
|
||||
}, $dataKontakt);
|
||||
$email_student_privat = implode(', ', $stud_private_zustell_emails);
|
||||
}
|
||||
|
||||
$email_student_FH = $this->StudentModel->getEmailFH($this->StudentModel->getUID($antrag->prestudent_id));
|
||||
|
||||
//studiensemester
|
||||
$result = $this->StudiensemesterModel->getByDate($datum->format('d.m.Y'));
|
||||
$result = $this->StudiensemesterModel->getByDate($datum->format('Y-m-d'));
|
||||
if (hasData($result)) {
|
||||
$dataSem = current(getData($result));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user