fix infostreet contact field setting
authorivan <ivan>
Fri, 21 Jun 2002 20:26:14 +0000 (20:26 +0000)
committerivan <ivan>
Fri, 21 Jun 2002 20:26:14 +0000 (20:26 +0000)
FS/FS/part_export/infostreet.pm

index a2fc049..89ab06d 100644 (file)
@@ -143,9 +143,9 @@ sub infostreet_setContact {
   my($url, $is_username, $is_password, $groupID, $username, %contact_info) = @_;
   my $accountID = infostreet_command($url, $is_username, $is_password, $groupID,
     'getAccountID', $username);
   my($url, $is_username, $is_password, $groupID, $username, %contact_info) = @_;
   my $accountID = infostreet_command($url, $is_username, $is_password, $groupID,
     'getAccountID', $username);
-  foreach my $field ( %contact_info ) {
+  foreach my $field ( keys %contact_info ) {
     infostreet_command($url, $is_username, $is_password, $groupID,
     infostreet_command($url, $is_username, $is_password, $groupID,
-      'setContactField', $field, $contact_info{$field} );
+      'setContactField', $accountID, $field, $contact_info{$field} );
   }
 
 }
   }
 
 }