From 2c5c2ea5ee30b8ac37bcff76e8a845b0f8d8d8f9 Mon Sep 17 00:00:00 2001 From: Colin Kuskie Date: Thu, 5 Nov 2009 12:32:45 -0800 Subject: [PATCH] Use a default, in case the source payment plugin is misconfigured. --- docs/upgrades/upgrade_7.8.1-7.8.2.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/upgrades/upgrade_7.8.1-7.8.2.pl b/docs/upgrades/upgrade_7.8.1-7.8.2.pl index 41a31276e..99d09a1fc 100644 --- a/docs/upgrades/upgrade_7.8.1-7.8.2.pl +++ b/docs/upgrades/upgrade_7.8.1-7.8.2.pl @@ -132,8 +132,8 @@ sub transactionsNotifications { my $defaultTemplate = 'bPz1yk6Y9uwMDMBcmMsSCg'; if (@{ $gateways }) { my $firstGateway = $gateways->[0]; - $defaultNotificationGroup = $firstGateway->get('saleNotificationGroupId'); - $defaultTemplate = $firstGateway->get('receiptEmailTemplateId' ); + $defaultNotificationGroup ||= $firstGateway->get('saleNotificationGroupId'); + $defaultTemplate ||= $firstGateway->get('receiptEmailTemplateId' ); foreach my $gateway (@{ $gateways }) { my $properties = $gateway->get(); delete $properties->{ saleNotificationGroupId };