From ae33c4d8c46fdfc5060d24503fd473ce2ee2f296 Mon Sep 17 00:00:00 2001 From: Dany De Bontridder Date: Wed, 24 Jan 2018 19:25:23 +0100 Subject: [PATCH] =?UTF-8?q?task=20#1531:=20Historique=20poste=20et=20fiche?= =?UTF-8?q?=20d'apr=C3=A8s=20exercice=20op=C3=A9ration=20Fait=20aussi=20po?= =?UTF-8?q?ur=20le=20bouton=20historique?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- include/lib/html_input.class.php | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/include/lib/html_input.class.php b/include/lib/html_input.class.php index a6fbe212e..f7a0e1a39 100755 --- a/include/lib/html_input.class.php +++ b/include/lib/html_input.class.php @@ -322,12 +322,16 @@ class HtmlInput /** * display a div with the history of the card */ - static function history_card_button($f_id, $p_mesg) + static function history_card_button($f_id, $p_mesg,$p_exercice="") { static $e=0; $e++; - $js=sprintf('onclick="view_history_card(\'%s\',\'%s\')"', $f_id, - dossier::id()); + global $g_user; + if ( $p_exercice=="") { + $p_exercice=$g_user->get_exercice(); + } + $js=sprintf('onclick="view_history_card(\'%s\',\'%s\',\'%s\')"', $f_id, + dossier::id(),$p_exercice); $view_history=HtmlInput::button("hcb"+$e, $p_mesg, $js); return $view_history; }