Adapted: Ordered Notizen to retrieve last inserted first

Signed-off-by: cris-technikum <hainberg@technikum-wien.at>
This commit is contained in:
Cris
2021-02-08 17:35:34 +01:00
committed by cris-technikum
parent 25400d8b5f
commit 00799f2f64
+2 -1
View File
@@ -208,7 +208,7 @@ class Notiz_model extends DB_Model
}
/**
* Get Notiz by Anrechnung and title
* Get Notizen by Anrechnung and title ordered last first
*
* @param $anrechnung_id
* @return array
@@ -216,6 +216,7 @@ class Notiz_model extends DB_Model
public function getNotizByAnrechnung($anrechnung_id, $titel = null)
{
$this->addJoin('public.tbl_notizzuordnung', 'notiz_id');
$this->addOrder('insertamum', 'DESC');
if (is_string($titel))
{