diff --git a/application/controllers/jobs/SponsionJob.php b/application/controllers/jobs/SponsionJob.php index 2ac2c4aa9..faaa81248 100644 --- a/application/controllers/jobs/SponsionJob.php +++ b/application/controllers/jobs/SponsionJob.php @@ -49,7 +49,7 @@ class SponsionJob extends JOB_Controller } $this->logInfo('Start Sponsion Job'); - $this->logInfo('Check Applications of Semester ' . $semester . 'and '. $nextSemester); + $this->logInfo('Check Applications of Semester ' . $semester . ' and '. $nextSemester); $allInteressenten = $this->PrestudentModel->getAllInteressentenWithMasterSponsion($semester, $nextSemester); diff --git a/application/models/crm/Prestudent_model.php b/application/models/crm/Prestudent_model.php index 6c5a9f9c2..f32913e79 100644 --- a/application/models/crm/Prestudent_model.php +++ b/application/models/crm/Prestudent_model.php @@ -688,7 +688,10 @@ class Prestudent_model extends DB_Model WHERE get_rolle_prestudent(ps.prestudent_id, null) = \'Interessent\' AND ps.zgvmadatum is NULL + AND ps.prestudent_id <> ps2.prestudent_id AND get_rolle_prestudent(ps2.prestudent_id, null) = \'Absolvent\' + AND ap.sponsion < NOW() + AND ap.abschlussbeurteilung_kurzbz in (\'bestanden\', \'gut\', \'ausgezeichnet\') AND sg.typ != \'l\' AND tbl_prestudentstatus.studiensemester_kurzbz in (?,?)', array(