Skip to content

Commit

Permalink
Fix lost search value in list if come from thirdparty card
Browse files Browse the repository at this point in the history
  • Loading branch information
phf committed Jul 17, 2017
1 parent 4e45c7f commit 885fc3c
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 1 deletion.
1 change: 1 addition & 0 deletions htdocs/comm/propal/list.php
Expand Up @@ -353,6 +353,7 @@
$soc = new Societe($db);
$soc->fetch($socid);
$title = $langs->trans('ListOfProposals') . ' - '.$soc->name;
if (empty($search_societe)) $search_societe = $soc->name;
}
else
{
Expand Down
1 change: 1 addition & 0 deletions htdocs/commande/list.php
Expand Up @@ -578,6 +578,7 @@
$soc = new Societe($db);
$soc->fetch($socid);
$title = $langs->trans('ListOfOrders') . ' - '.$soc->name;
if (empty($search_company)) $search_company = $soc->name;
}
else
{
Expand Down
1 change: 1 addition & 0 deletions htdocs/compta/facture/list.php
Expand Up @@ -423,6 +423,7 @@
{
$soc = new Societe($db);
$soc->fetch($socid);
if (empty($search_societe)) $search_societe = $soc->name;
}

$param='&socid='.$socid;
Expand Down
7 changes: 7 additions & 0 deletions htdocs/contrat/list.php
Expand Up @@ -306,6 +306,13 @@

$arrayofselected=is_array($toselect)?$toselect:array();

if ($socid)
{
$soc = new Societe($db);
$soc->fetch($socid);
if (empty($search_name)) $search_name = $soc->name;
}

$param='';
if (! empty($contextpage) && $contextpage != $_SERVER["PHP_SELF"]) $param.='&contextpage='.$contextpage;
if ($limit > 0 && $limit != $conf->liste_limit) $param.='&limit='.$limit;
Expand Down
9 changes: 8 additions & 1 deletion htdocs/fichinter/list.php
Expand Up @@ -211,7 +211,14 @@
if ($result)
{
$num = $db->num_rows($result);


if ($socid)
{
$soc = new Societe($db);
$soc->fetch($socid);
if (empty($search_company)) $search_company = $soc->name;
}

$param='';
if (! empty($contextpage) && $contextpage != $_SERVER["PHP_SELF"]) $param.='&contextpage='.$contextpage;
if ($limit > 0 && $limit != $conf->liste_limit) $param.='&limit='.$limit;
Expand Down
1 change: 1 addition & 0 deletions htdocs/fourn/facture/list.php
Expand Up @@ -394,6 +394,7 @@
{
$soc = new Societe($db);
$soc->fetch($socid);
if (empty($search_societe)) $search_societe = $soc->name;
}

$param='&socid='.$socid;
Expand Down

0 comments on commit 885fc3c

Please sign in to comment.