From 87b9d0412cd162ec0601876f978fba59082a36ab Mon Sep 17 00:00:00 2001 From: Florian HENRY Date: Thu, 22 May 2014 12:51:00 +0200 Subject: [PATCH] Fix element page on project --- ChangeLog | 1 + htdocs/core/class/html.formprojet.class.php | 1 + htdocs/projet/element.php | 4 ++-- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 9fbc33607bc..fc959306666 100644 --- a/ChangeLog +++ b/ChangeLog @@ -28,6 +28,7 @@ Fix: TCPDF error file not found in member card generation. Fix: [ bug #1380 ] Customer invoices are not grouped in company results report. Fix: [ bug #1393 ] PHP Warning when creating a supplier invoice. Fix: [ bug #1399 ] [pgsql] Silent warning when setting a propal as "facturée" in propal.php +Fix: element page on project give wrong href link ***** ChangeLog for 3.5.2 compared to 3.5.1 ***** Fix: Can't add user for a task. diff --git a/htdocs/core/class/html.formprojet.class.php b/htdocs/core/class/html.formprojet.class.php index 9e0d78118b0..2c371d4afcd 100644 --- a/htdocs/core/class/html.formprojet.class.php +++ b/htdocs/core/class/html.formprojet.class.php @@ -194,6 +194,7 @@ class FormProjets if (!empty($this->societe->id)) { $sql.= " AND fk_soc=".$this->societe->id; } + $sql.= ' AND entity='.$conf->entity; $sql.= " ORDER BY ref DESC"; dol_syslog(get_class($this).'::select_element sql='.$sql,LOG_DEBUG); diff --git a/htdocs/projet/element.php b/htdocs/projet/element.php index e256fb45baa..6ca2be05271 100644 --- a/htdocs/projet/element.php +++ b/htdocs/projet/element.php @@ -114,7 +114,7 @@ print ''; print ''.$langs->trans("Label").''.$project->title.''; -print ''.$langs->trans("ThirdParty").''; +print ''.$langs->trans("Company").''; if (! empty($project->societe->id)) print $project->societe->getNomUrl(1); else print ' '; print ''; @@ -314,7 +314,7 @@ foreach ($listofreferent as $key => $value) } if ($key == 'invoice' && ! empty($conf->facture->enabled) && $user->rights->facture->creer) { - print ''.$langs->trans("AddCustomerInvoice").''; + print ''.$langs->trans("AddCustomerInvoice").''; } } if ($project->societe->fournisseur)