From 47a638b1ed31b62a94312954ffb2ecace4a4ea47 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sun, 7 Nov 2004 13:42:08 +0000 Subject: [PATCH] =?UTF-8?q?Fix:=20Le=20lien=20de=20la=20zone=20de=20recher?= =?UTF-8?q?che=20"soci=E9t=E9s"=20am=E8ne=20sur=20la=20pages=20des=20soci?= =?UTF-8?q?=E9t=E9s=20et=20non=20des=20contacts.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/main.inc.php | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/htdocs/main.inc.php b/htdocs/main.inc.php index 46b6a3680c6..802be68937c 100644 --- a/htdocs/main.inc.php +++ b/htdocs/main.inc.php @@ -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) { $langs->load("companies"); - - 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'); + printSearchForm(DOL_URL_ROOT.'/societe.php',DOL_URL_ROOT.'/societe.php',$langs->trans("Companies"),'soc','socname'); } if ($conf->societe->enabled && defined("MAIN_SEARCHFORM_CONTACT") && MAIN_SEARCHFORM_CONTACT > 0)