From 0439c19cb12de2d839250821606fe38ed92aaaeb Mon Sep 17 00:00:00 2001 From: Manfred Kindl Date: Tue, 16 Apr 2019 16:44:55 +0200 Subject: [PATCH] Infocenter Notices "Anmerkung zur Bewerbung" When there is an extra content after "Anmerkung zur Bewerbung" e.g. "Anmerkung zur Bewerbung (BWI)" the notice is also displayed on top --- application/controllers/system/infocenter/InfoCenter.php | 2 +- application/models/person/Notiz_model.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/application/controllers/system/infocenter/InfoCenter.php b/application/controllers/system/infocenter/InfoCenter.php index 883f8b8f8..52c9e0d25 100644 --- a/application/controllers/system/infocenter/InfoCenter.php +++ b/application/controllers/system/infocenter/InfoCenter.php @@ -1153,7 +1153,7 @@ class InfoCenter extends Auth_Controller show_error($notizen->retval); } - $notizen_bewerbung = $this->NotizModel->getNotizByTitel($person_id, 'Anmerkung zur Bewerbung'); + $notizen_bewerbung = $this->NotizModel->getNotizByTitel($person_id, 'Anmerkung zur Bewerbung%'); if (isError($notizen_bewerbung)) { diff --git a/application/models/person/Notiz_model.php b/application/models/person/Notiz_model.php index 8df400933..a5453aaa1 100644 --- a/application/models/person/Notiz_model.php +++ b/application/models/person/Notiz_model.php @@ -156,7 +156,7 @@ class Notiz_model extends DB_Model $this->addJoin('public.tbl_notizzuordnung', 'notiz_id'); $this->addOrder('insertamum', 'DESC'); - return $this->loadWhere(array('person_id' => $person_id, 'titel' => $titel)); + return $this->loadWhere(array('person_id' => $person_id, 'titel LIKE' => $titel)); } // ------------------------------------------------------------------------------------------------------