Fix: Le lien de la zone de recherche "sociétés" amène sur la pages des sociétés et non des contacts.
This commit is contained in:
parent
20ddf8c120
commit
47a638b1ed
@ -266,17 +266,7 @@ function left_menu($menu, $help_url='', $form_search='', $author='')
|
|||||||
if ($conf->societe->enabled && defined("MAIN_SEARCHFORM_SOCIETE") && MAIN_SEARCHFORM_SOCIETE > 0)
|
if ($conf->societe->enabled && defined("MAIN_SEARCHFORM_SOCIETE") && MAIN_SEARCHFORM_SOCIETE > 0)
|
||||||
{
|
{
|
||||||
$langs->load("companies");
|
$langs->load("companies");
|
||||||
|
printSearchForm(DOL_URL_ROOT.'/societe.php',DOL_URL_ROOT.'/societe.php',$langs->trans("Companies"),'soc','socname');
|
||||||
if (strstr($_SERVER["SCRIPT_URL"], "/comm/prospect/"))
|
|
||||||
{
|
|
||||||
$url=DOL_URL_ROOT.'/comm/prospect/prospects.php';
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
$url=DOL_URL_ROOT.'/societe.php';
|
|
||||||
}
|
|
||||||
|
|
||||||
printSearchForm($url,DOL_URL_ROOT.'/comm/clients.php',$langs->trans("Companies"),'soc','socname');
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($conf->societe->enabled && defined("MAIN_SEARCHFORM_CONTACT") && MAIN_SEARCHFORM_CONTACT > 0)
|
if ($conf->societe->enabled && defined("MAIN_SEARCHFORM_CONTACT") && MAIN_SEARCHFORM_CONTACT > 0)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user