diff --git a/htdocs/comm/action/fiche.php b/htdocs/comm/action/fiche.php index f04b873eb9f..7855fc0f32f 100644 --- a/htdocs/comm/action/fiche.php +++ b/htdocs/comm/action/fiche.php @@ -2,6 +2,7 @@ /* Copyright (C) 2001-2005 Rodolphe Quiedeville * Copyright (C) 2004-2006 Laurent Destailleur * Copyright (C) 2005 Simon TOSSER + * Copyright (C) 2005-2007 Regis Houssin * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -339,8 +340,9 @@ if ($_GET["action"] == 'create') // Si la societe est imposée, on propose ces contacts if ($_REQUEST["socid"]) { + $contactid = $_REQUEST["contactid"]?$_REQUEST["contactid"]:''; print ''.$langs->trans("ActionOnContact").''; - $html->select_contacts($_REQUEST["socid"],'','contactid',1,1); + $html->select_contacts($_REQUEST["socid"],$contactid,'contactid',1,1); print ''; } diff --git a/htdocs/fourn/fiche.php b/htdocs/fourn/fiche.php index 22b3597cddd..d61ed36a982 100644 --- a/htdocs/fourn/fiche.php +++ b/htdocs/fourn/fiche.php @@ -351,7 +351,7 @@ if ( $societe->fetch($socid) ) print "rowid."\">".img_edit().""; } - print ''; + print ''; print img_object($langs->trans("Rendez-Vous"),"action"); print '';