From 94506d8a14529546fd2492df3d26879c824eefea Mon Sep 17 00:00:00 2001 From: Cris Date: Tue, 5 Nov 2019 16:32:00 +0100 Subject: [PATCH] Fixed: Corrected icon bestellt instead of icon changed when updating rows Because of recently commited extra check of stunden/vertragstunden to determine geaenderte Lehrauftraege correctly, the row update callback function needed also extra information to format status icon correctly. This is fixed now. --- application/controllers/lehre/lehrauftrag/Lehrauftrag.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/application/controllers/lehre/lehrauftrag/Lehrauftrag.php b/application/controllers/lehre/lehrauftrag/Lehrauftrag.php index 60bc2c791..1f36a91e1 100644 --- a/application/controllers/lehre/lehrauftrag/Lehrauftrag.php +++ b/application/controllers/lehre/lehrauftrag/Lehrauftrag.php @@ -167,6 +167,7 @@ class Lehrauftrag extends Auth_Controller 'row_index' => $lehrauftrag->row_index, 'bestellt' => date('Y-m-d'), 'vertrag_betrag' => $betrag, + 'vertrag_stunden' => $stunden, 'erteilt' => null ); } @@ -191,7 +192,8 @@ class Lehrauftrag extends Auth_Controller $json []= array( 'row_index' => $lehrauftrag->row_index, 'bestellt' => date('Y-m-d'), - 'vertrag_betrag' => $betrag + 'vertrag_betrag' => $betrag, + 'vertrag_stunden' => $stunden ); }