mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-12 12:31:26 +01:00
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:
@@ -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>';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -351,7 +351,7 @@ if ( $societe->fetch($socid) )
|
|||||||
print "<td align=\"center\"><a href=\"../contact/fiche.php?action=edit&id=".$obj->rowid."\">".img_edit()."</a></td>";
|
print "<td align=\"center\"><a href=\"../contact/fiche.php?action=edit&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>';
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user