Fix: l'id du contact pour un rdv n'tait pas rcupr

Fix: le code AC_RDV n'tait pas rcupr dans une fiche fournisseur
This commit is contained in:
Regis Houssin
2007-12-05 11:00:43 +00:00
parent 65888c67a7
commit 901bdf365c
2 changed files with 4 additions and 2 deletions

View File

@@ -2,6 +2,7 @@
/* Copyright (C) 2001-2005 Rodolphe Quiedeville <rodolphe@quiedeville.org> /* Copyright (C) 2001-2005 Rodolphe Quiedeville <rodolphe@quiedeville.org>
* Copyright (C) 2004-2006 Laurent Destailleur <eldy@users.sourceforge.net> * Copyright (C) 2004-2006 Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) 2005 Simon TOSSER <simon@kornog-computing.com> * Copyright (C) 2005 Simon TOSSER <simon@kornog-computing.com>
* Copyright (C) 2005-2007 Regis Houssin <regis@dolibarr.fr>
* *
* This program is free software; you can redistribute it and/or modify * 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 * 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<6F>e, on propose ces contacts // Si la societe est impos<6F>e, on propose ces contacts
if ($_REQUEST["socid"]) if ($_REQUEST["socid"])
{ {
$contactid = $_REQUEST["contactid"]?$_REQUEST["contactid"]:'';
print '<tr><td>'.$langs->trans("ActionOnContact").'</td><td>'; print '<tr><td>'.$langs->trans("ActionOnContact").'</td><td>';
$html->select_contacts($_REQUEST["socid"],'','contactid',1,1); $html->select_contacts($_REQUEST["socid"],$contactid,'contactid',1,1);
print '</td></tr>'; print '</td></tr>';
} }

View File

@@ -351,7 +351,7 @@ if ( $societe->fetch($socid) )
print "<td align=\"center\"><a href=\"../contact/fiche.php?action=edit&amp;id=".$obj->rowid."\">".img_edit()."</a></td>"; print "<td align=\"center\"><a href=\"../contact/fiche.php?action=edit&amp;id=".$obj->rowid."\">".img_edit()."</a></td>";
} }
print '<td align="center"><a href="../comm/action/fiche.php?action=create&actionid=5&contactid='.$obj->rowid.'&socid='.$societe->id.'">'; print '<td align="center"><a href="../comm/action/fiche.php?action=create&actioncode=AC_RDV&contactid='.$obj->rowid.'&socid='.$societe->id.'">';
print img_object($langs->trans("Rendez-Vous"),"action"); print img_object($langs->trans("Rendez-Vous"),"action");
print '</a></td>'; print '</a></td>';