FIX filter on project list
This commit is contained in:
parent
d17ecbeccd
commit
16e3baeff2
@ -1733,7 +1733,7 @@ function print_left_eldy_menu($db, $menu_array_before, $menu_array_after, &$tabM
|
||||
elseif ($conf->global->PROJECT_USE_OPPORTUNITIES == 1)
|
||||
{
|
||||
$newmenu->add("/projet/list.php?leftmenu=projets".($search_project_user ? '&search_project_user='.$search_project_user : ''), $langs->trans("List"), 1, $showmode, '', 'project', 'list');
|
||||
$newmenu->add('/projet/list.php?mainmenu=project&leftmenu=list&search_usage_opportunity=1&search_status=99&contextpage=lead', $langs->trans("ListOpenLeads"), 2, $showmode);
|
||||
$newmenu->add('/projet/list.php?mainmenu=project&leftmenu=list&search_usage_opportunity=1&search_status=99&search_opp_status=openedopp&contextpage=lead', $langs->trans("ListOpenLeads"), 2, $showmode);
|
||||
$newmenu->add('/projet/list.php?mainmenu=project&leftmenu=list&search_opp_status=notopenedopp&search_status=99&contextpage=project', $langs->trans("ListOpenProjects"), 2, $showmode);
|
||||
}
|
||||
elseif ($conf->global->PROJECT_USE_OPPORTUNITIES == 2) { // 2 = leads only
|
||||
|
||||
@ -402,28 +402,29 @@ $help_url = "EN:Module_Projects|FR:Module_Projets|ES:Módulo_Proyectos";
|
||||
llxHeader("", $title, $help_url);
|
||||
|
||||
$param = '';
|
||||
if (!empty($contextpage) && $contextpage != $_SERVER["PHP_SELF"]) $param .= '&contextpage='.$contextpage;
|
||||
if ($limit > 0 && $limit != $conf->liste_limit) $param .= '&limit='.$limit;
|
||||
if ($search_all != '') $param .= '&search_all='.$search_all;
|
||||
if ($search_sday) $param .= '&search_sday='.$search_sday;
|
||||
if ($search_smonth) $param .= '&search_smonth='.$search_smonth;
|
||||
if ($search_syear) $param .= '&search_syear='.$search_syear;
|
||||
if ($search_eday) $param .= '&search_eday='.$search_eday;
|
||||
if ($search_emonth) $param .= '&search_emonth='.$search_emonth;
|
||||
if ($search_eyear) $param .= '&search_eyear='.$search_eyear;
|
||||
if ($socid) $param .= '&socid='.$socid;
|
||||
if ($search_ref != '') $param .= '&search_ref='.$search_ref;
|
||||
if ($search_label != '') $param .= '&search_label='.$search_label;
|
||||
if ($search_societe != '') $param .= '&search_societe='.$search_societe;
|
||||
if ($search_status >= 0) $param .= '&search_status='.$search_status;
|
||||
if (!empty($contextpage) && $contextpage != $_SERVER["PHP_SELF"]) $param .= '&contextpage='.urlencode($contextpage);
|
||||
if ($limit > 0 && $limit != $conf->liste_limit) $param .= '&limit='.urlencode($limit);
|
||||
if ($search_all != '') $param .= '&search_all='.urlencode($search_all);
|
||||
if ($search_sday) $param .= '&search_sday='.urlencode($search_sday);
|
||||
if ($search_smonth) $param .= '&search_smonth='.urlencode($search_smonth);
|
||||
if ($search_syear) $param .= '&search_syear='.urlencode($search_syear);
|
||||
if ($search_eday) $param .= '&search_eday='.urlencode($search_eday);
|
||||
if ($search_emonth) $param .= '&search_emonth='.urlencode($search_emonth);
|
||||
if ($search_eyear) $param .= '&search_eyear='.urlencode($search_eyear);
|
||||
if ($socid) $param .= '&socid='.urlencode($socid);
|
||||
if ($search_categ) $param .= '&search_categ='.urlencode($search_categ);
|
||||
if ($search_ref != '') $param .= '&search_ref='.urlencode($search_ref);
|
||||
if ($search_label != '') $param .= '&search_label='.urlencode($search_label);
|
||||
if ($search_societe != '') $param .= '&search_societe='.urlencode($search_societe);
|
||||
if ($search_status >= 0) $param .= '&search_status='.urlencode($search_status);
|
||||
if ((is_numeric($search_opp_status) && $search_opp_status >= 0) || in_array($search_opp_status, array('all', 'openedopp', 'notopenedopp', 'none'))) $param .= '&search_opp_status='.urlencode($search_opp_status);
|
||||
if ($search_opp_percent != '') $param .= '&search_opp_percent='.urlencode($search_opp_percent);
|
||||
if ($search_public != '') $param .= '&search_public='.$search_public;
|
||||
if ($search_project_user != '') $param .= '&search_project_user='.$search_project_user;
|
||||
if ($search_sale > 0) $param .= '&search_sale='.$search_sale;
|
||||
if ($search_opp_amount != '') $param .= '&search_opp_amount='.$search_opp_amount;
|
||||
if ($search_budget_amount != '') $param .= '&search_budget_amount='.$search_budget_amount;
|
||||
if ($optioncss != '') $param .= '&optioncss='.$optioncss;
|
||||
if ($search_public != '') $param .= '&search_public='.urlencode($search_public);
|
||||
if ($search_project_user != '') $param .= '&search_project_user='.urlencode($search_project_user);
|
||||
if ($search_sale > 0) $param .= '&search_sale='.urlencode($search_sale);
|
||||
if ($search_opp_amount != '') $param .= '&search_opp_amount='.urlencode($search_opp_amount);
|
||||
if ($search_budget_amount != '') $param .= '&search_budget_amount='.urlencode($search_budget_amount);
|
||||
if ($optioncss != '') $param .= '&optioncss='.urlencode($optioncss);
|
||||
// Add $param from extra fields
|
||||
include DOL_DOCUMENT_ROOT.'/core/tpl/extrafields_list_search_param.tpl.php';
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user