Fixes entreprise's address admin edition.
authorStéphane Jacob <sj@m4x.org>
Mon, 29 Nov 2010 15:28:58 +0000 (16:28 +0100)
committerStéphane Jacob <sj@m4x.org>
Wed, 1 Dec 2010 12:37:47 +0000 (13:37 +0100)
Signed-off-by: Stéphane Jacob <sj@m4x.org>
modules/admin.php

index b2aeae9..ce810ea 100644 (file)
@@ -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();