diff --git a/include/ajax/ajax_follow_up.php b/include/ajax/ajax_follow_up.php index 3fc05737d..bdb035952 100644 --- a/include/ajax/ajax_follow_up.php +++ b/include/ajax/ajax_follow_up.php @@ -149,8 +149,9 @@ if ($op =="view_followup_card") $div=$http->get("div"); $card=new Fiche($cn,$http->get("f_id","number")); echo HtmlInput::title_box("Suivi ".h($card->strAttribut(ATTR_DEF_NAME)),$div); - $query=Follow_Up::create_query($cn,["qcode"=>$card->strAttribut(ATTR_DEF_QUICKCODE), - 'closed_action'=>true]); + + $query="where true=true ".Follow_Up::create_query($cn,["qcode"=>$card->strAttribut(ATTR_DEF_QUICKCODE), + 'closed_action'=>true]); $followup=new Follow_Up($cn); echo $followup->view_list($query,' limit 25'); echo \HtmlInput::button_close($div); diff --git a/include/template/follow_up-view_list.php b/include/template/follow_up-view_list.php index e44a7e9ac..8706109a2 100644 --- a/include/template/follow_up-view_list.php +++ b/include/template/follow_up-view_list.php @@ -22,6 +22,7 @@ * \brief display list of followup */ global $cn; +$cn=$this->db; $array=$cn->get_array($sql); if (empty ($array)) { echo_warning("Aucun suivi "); @@ -62,7 +63,7 @@ echo \HtmlInput::filter_table("view_list_tb", "0,1,2,3,4,5", 1);