From 057f52c15f1f9e8482d0f657e6a3686691259d12 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Wed, 31 Mar 2004 09:42:58 +0000 Subject: [PATCH] Modifie nom_url pour pointer sur la fiche prospect ou client --- htdocs/societe.class.php | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/htdocs/societe.class.php b/htdocs/societe.class.php index a95ae3bb5ec..3df3c316e90 100644 --- a/htdocs/societe.class.php +++ b/htdocs/societe.class.php @@ -195,7 +195,20 @@ class Societe { $this->client = $obj->client; $this->fournisseur = $obj->fournisseur; - $this->nom_url = ''.$obj->nom.''; + if ($this->client == 1) + { + + $this->nom_url = ''.$obj->nom.''; + } + elseif($this->client == 2) + { + $this->nom_url = ''.$obj->nom.''; + } + else + { + $this->nom_url = ''.$obj->nom.''; + } + $this->rubrique = $obj->rubrique;