From 10a574ea3b9a39b61ca7280278be7fe2b84aa3d0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?St=C3=A9phane=20Jacob?= Date: Fri, 15 Oct 2010 14:06:20 +0200 Subject: [PATCH] Fixes job's addresses fetching in profile. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Stéphane Jacob --- modules/profile/jobs.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/profile/jobs.inc.php b/modules/profile/jobs.inc.php index 7c65870..785a48f 100644 --- a/modules/profile/jobs.inc.php +++ b/modules/profile/jobs.inc.php @@ -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()) { -- 2.1.4