From: Stéphane Jacob Date: Sat, 3 Jul 2010 16:19:09 +0000 (+0200) Subject: Also displays entreprise name on profile, minifiche... when awaiting validation. X-Git-Tag: xorg/1.0.1~365 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=c4b6b1f4989e57e80aa721028d8255a3800442f9;p=platal.git Also displays entreprise name on profile, minifiche... when awaiting validation. Signed-off-by: Stéphane Jacob --- 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()