addEmailAddress: supporter_email_address_mapping
Properly map email address to supporter when email address is added. Test now passes: ok 12 - addSuporter: email address mapping is created on addSupporter() w/ email address included
This commit is contained in:
		
							parent
							
								
									3f3f8b7090
								
							
						
					
					
						commit
						c4668b81d6
					
				
					 1 changed files with 8 additions and 0 deletions
				
			
		|  | @ -194,7 +194,15 @@ sub addEmailAddress($$$$) { | |||
|   $sth->execute($emailAddress, $addressTypeId); | ||||
|   my $addressId = $self->dbh->last_insert_id("","","",""); | ||||
|   $sth->finish(); | ||||
| 
 | ||||
|   my $sth = $self->dbh->prepare("INSERT INTO supporter_email_address_mapping" . | ||||
|                                       "(supporter_id, email_address_id) " . | ||||
|                                 "VALUES(           ?, ?)"); | ||||
|   $sth->execute($id, $addressId); | ||||
|   $sth->finish(); | ||||
| 
 | ||||
|   $self->_commit(); | ||||
| 
 | ||||
|   return $addressId; | ||||
| } | ||||
| ###################################################################### | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 Bradley M. Kuhn
						Bradley M. Kuhn