Reoccurring transactions now use the correct user id

This commit is contained in:
Kaleb Murphy 2008-09-10 16:04:06 +00:00
parent 90b76d21a4
commit 21d8baf583
2 changed files with 4 additions and 0 deletions

View file

@ -30,6 +30,7 @@
- fixed: Form/Integer now shows 0 in the results page
- added: Email from field now prefixed with username
- added: Inbox messages now tell you who the message was from
- fixed: Reoccurring transactions now update the correct user id
7.5.22
- fixed: Layout template now gets prepared correctly
- fixed: When user does not have permissions to search/edit a thing a proper error is shown.

View file

@ -747,6 +747,9 @@ sub www_processRecurringTransactionPostback {
# Fetch the original transaction
my $baseTransaction = eval{WebGUI::Shop::Transaction->newByGatewayId( $session, $originatingXid, $self->getId )};
#make sure the same user is used in this transaction as the last {mostly needed for reoccurring transactions
$self->session->user({userId=>$baseTransaction->get('userId')})
#---- Check the validity of the request -------
# First check whether the original transaction actualy exists
if (WebGUI::Error->caught || !(defined $baseTransaction) ) {