FIX : llxHeader() must be after header location of MAIN_SEARCH_DIRECT_OPEN_IF_ONLY_ONE
This commit is contained in:
parent
86fab2311b
commit
a03a708b84
@ -550,10 +550,6 @@ $formcompany = new FormCompany($db);
|
|||||||
$varpage = empty($contextpage) ? $_SERVER["PHP_SELF"] : $contextpage;
|
$varpage = empty($contextpage) ? $_SERVER["PHP_SELF"] : $contextpage;
|
||||||
$selectedfields = $form->multiSelectArrayWithCheckbox('selectedfields', $arrayfields, $varpage); // This also change content of $arrayfields
|
$selectedfields = $form->multiSelectArrayWithCheckbox('selectedfields', $arrayfields, $varpage); // This also change content of $arrayfields
|
||||||
|
|
||||||
$title = $langs->trans('ListOfProposals');
|
|
||||||
$help_url = 'EN:Commercial_Proposals|FR:Proposition_commerciale|ES:Presupuestos';
|
|
||||||
llxHeader('', $title, $help_url);
|
|
||||||
|
|
||||||
$sql = 'SELECT';
|
$sql = 'SELECT';
|
||||||
if ($sall || $search_user > 0) {
|
if ($sall || $search_user > 0) {
|
||||||
$sql = 'SELECT DISTINCT';
|
$sql = 'SELECT DISTINCT';
|
||||||
@ -857,6 +853,9 @@ if ($resql) {
|
|||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$help_url = 'EN:Commercial_Proposals|FR:Proposition_commerciale|ES:Presupuestos';
|
||||||
|
llxHeader('', $langs->trans('ListOfProposals'), $help_url);
|
||||||
|
|
||||||
$param = '&search_status='.urlencode($search_status);
|
$param = '&search_status='.urlencode($search_status);
|
||||||
if (!empty($contextpage) && $contextpage != $_SERVER["PHP_SELF"]) {
|
if (!empty($contextpage) && $contextpage != $_SERVER["PHP_SELF"]) {
|
||||||
$param .= '&contextpage='.urlencode($contextpage);
|
$param .= '&contextpage='.urlencode($contextpage);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user