X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=include%2Fprofilefields.inc.php;h=9fe2552b78962239dc522a10ef0c2a88db50c57d;hb=c4b6b1f4989e57e80aa721028d8255a3800442f9;hp=83f3fb00f3480848ce048737e38101e2873836cd;hpb=c91c11bac1c6556259861dab1d3c6789b8a0eb8a;p=platal.git 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()