From c4b6b1f4989e57e80aa721028d8255a3800442f9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?St=C3=A9phane=20Jacob?= Date: Sat, 3 Jul 2010 18:19:09 +0200 Subject: [PATCH] Also displays entreprise name on profile, minifiche... when awaiting validation. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Stéphane Jacob --- include/profilefields.inc.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/profilefields.inc.php b/include/profilefields.inc.php index 83f3fb0..9fe2552 100644 --- a/include/profilefields.inc.php +++ b/include/profilefields.inc.php @@ -281,6 +281,11 @@ class Job $this->$key = $val; } $this->company = CompanyList::get($this->jobid); + if (is_null($this->company)) { + require_once 'validations.inc.php'; + $entreprise = ProfileValidate::get_typed_requests($this->pid, 'entreprise'); + $this->company = new Company(array('name' => $entreprise[$this->id]->name)); + } } public function phones() -- 2.1.4