Fixes job's addresses fetching in profile.
authorStéphane Jacob <sj@m4x.org>
Fri, 15 Oct 2010 12:06:20 +0000 (14:06 +0200)
committerStéphane Jacob <sj@m4x.org>
Fri, 15 Oct 2010 12:06:20 +0000 (14:06 +0200)
Signed-off-by: Stéphane Jacob <sj@m4x.org>
modules/profile/jobs.inc.php

index 7c65870..785a48f 100644 (file)
@@ -88,7 +88,7 @@ class ProfileSettingJob implements ProfileSetting
 
         $it = Address::iterate(array($page->pid()), array(Address::LINK_JOB));
         while ($address = $it->next()) {
-            $jobs[$address->jobid]['w_address'] = $address->toFormArray();
+            $jobs[$address->id]['w_address'] = $address->toFormArray();
         }
         $it = Phone::iterate(array($page->pid()), array(Phone::LINK_JOB));
         while ($phone = $it->next()) {