From 1d9de47d0238dc3c771e689539d34a5b209e968d Mon Sep 17 00:00:00 2001 From: Laurent Destailleur <eldy@users.sourceforge.net> Date: Thu, 29 Apr 2010 20:45:49 +0000 Subject: [PATCH] Fix: Bad links --- htdocs/compta/fiche.php | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/htdocs/compta/fiche.php b/htdocs/compta/fiche.php index e8a94733e54..f0746cfd065 100644 --- a/htdocs/compta/fiche.php +++ b/htdocs/compta/fiche.php @@ -1,6 +1,6 @@ <?php /* Copyright (C) 2001-2004 Rodolphe Quiedeville <rodolphe@quiedeville.org> - * Copyright (C) 2004-2009 Laurent Destailleur <eldy@users.sourceforge.net> + * Copyright (C) 2004-2010 Laurent Destailleur <eldy@users.sourceforge.net> * Copyright (C) 2005-2010 Regis Houssin <regis@dolibarr.fr> * Copyright (C) 2010 Juanjo Menent <jmenent@2byte.es> * @@ -443,7 +443,7 @@ if ($socid > 0) if ($user->rights->facture->creer) { $langs->load("bills"); - if ($societe->client != 0) print '<a class="butAction" href="'.DOL_URL_ROOT.'/compta/facture.php?action=create&socid=$societe->id">'.$langs->trans("AddBill").'</a>'; + if ($societe->client != 0) print '<a class="butAction" href="'.DOL_URL_ROOT.'/compta/facture.php?action=create&socid='.$societe->id.'">'.$langs->trans("AddBill").'</a>'; else print '<a class="butActionRefused" title="'.dol_escape_js($langs->trans("ThirdPartyMustBeEditAsCustomer")).'" href="#">'.$langs->trans("AddBill").'</a>'; } else @@ -455,15 +455,16 @@ if ($socid > 0) if ($conf->deplacement->enabled) { $langs->load("trips"); - print '<a class="butAction" href="'.DOL_URL_ROOT.'/compta/deplacement/fiche.php?socid=$societe->id&action=create">'.$langs->trans("AddTrip").'</a>'; + print '<a class="butAction" href="'.DOL_URL_ROOT.'/compta/deplacement/fiche.php?socid='.$societe->id.'&action=create">'.$langs->trans("AddTrip").'</a>'; } } + // Add action if ($conf->agenda->enabled) { if ($user->rights->agenda->myactions->create) { - print '<a class="butAction" href="'.DOL_URL_ROOT.'/comm/action/fiche.php?action=create&socid='.$socid.'">'.$langs->trans("AddAction").'</a>'; + print '<a class="butAction" href="'.DOL_URL_ROOT.'/comm/action/fiche.php?action=create&socid='.$societe->id.'">'.$langs->trans("AddAction").'</a>'; } else { @@ -473,7 +474,7 @@ if ($socid > 0) if ($user->rights->societe->contact->creer) { - print "<a class=\"butAction\" href=\"".DOL_URL_ROOT.'/contact/fiche.php?socid='.$socid."&action=create\">".$langs->trans("AddContact")."</a>"; + print "<a class=\"butAction\" href=\"".DOL_URL_ROOT.'/contact/fiche.php?socid='.$societe->id."&action=create\">".$langs->trans("AddContact")."</a>"; } print '</div>'; -- GitLab