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
This commit is contained in:
Manfred Kindl
2019-04-16 16:44:55 +02:00
parent 307f279e08
commit 0439c19cb1
2 changed files with 2 additions and 2 deletions
@@ -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))
{
+1 -1
View File
@@ -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));
}
// ------------------------------------------------------------------------------------------------------