From c32bed902ba8c0cc2194675f3181b5e678c75aa6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?St=C3=A9phane=20Jacob?= Date: Mon, 29 Nov 2010 16:28:58 +0100 Subject: [PATCH] Fixes entreprise's address admin edition. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Stéphane Jacob --- modules/admin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/admin.php b/modules/admin.php index b2aeae9..ce810ea 100644 --- a/modules/admin.php +++ b/modules/admin.php @@ -1507,7 +1507,7 @@ class AdminModule extends PLModule 'link_type' => Phone::LINK_COMPANY, 'pub' => 'public')); $fax = new Phone(array('display' => Env::v('fax'), 'link_id' => $id, 'id' => 1, 'type' => 'fax', 'link_type' => Phone::LINK_COMPANY, 'pub' => 'public')); - $address = new Address(array('jobid' => $jobid, 'type' => Address::LINK_COMPANY, 'text' => Env::t('address'))); + $address = new Address(array('jobid' => $id, 'type' => Address::LINK_COMPANY, 'text' => Env::t('address'))); $phone->save(); $fax->save(); $address->save(); -- 2.1.4