FOLLOWUP Card: show 20 last action, even closed
This commit is contained in:
parent
f8abbfedd2
commit
4f274cc84d
2 changed files with 6 additions and 4 deletions
|
|
@ -149,9 +149,10 @@ 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)]);
|
||||
$query=Follow_Up::create_query($cn,["qcode"=>$card->strAttribut(ATTR_DEF_QUICKCODE),
|
||||
'closed_action'=>true]);
|
||||
$followup=new Follow_Up($cn);
|
||||
echo $followup->view_list($query);
|
||||
echo $followup->view_list($query,' limit 25');
|
||||
echo \HtmlInput::button_close($div);
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -855,12 +855,13 @@ class Follow_Up
|
|||
/**
|
||||
* @brief display list of followup , used with card
|
||||
* @param $query string SQL query
|
||||
* @param $extra_sql string extra to add to the query , example "limit 20"
|
||||
* @return void
|
||||
*/
|
||||
function view_list($query)
|
||||
function view_list($query,$extra_sql="")
|
||||
{
|
||||
$sql=Follow_Up::SQL_list_action();
|
||||
$sql = " $sql $query";
|
||||
$sql = " $sql $query order by ag_timestamp desc $extra_sql";
|
||||
require_once NOALYSS_TEMPLATE."/follow_up-view_list.php";
|
||||
}
|
||||
//----------------------------------------------------------------------
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue