Make processTransaction really handle not getting an object, by checking
to see if it's an object before calling methods on it.
This commit is contained in:
parent
ba156edb5a
commit
26ef39e66b
2 changed files with 9 additions and 5 deletions
|
|
@ -15,6 +15,7 @@
|
|||
- fixed #10138: Matrix 2.0 Links in Product Listing are broken
|
||||
- fixed #10163: User List - alphabet search field broken
|
||||
- fixed #9039: Synopsis not output as a meta field
|
||||
- fixed #9939: checkout error with any payment method
|
||||
|
||||
7.7.3
|
||||
- fixed #10094: double explanation in thread help
|
||||
|
|
|
|||
|
|
@ -13,6 +13,7 @@ use WebGUI::Macro;
|
|||
use WebGUI::User;
|
||||
use WebGUI::Shop::Cart;
|
||||
use JSON;
|
||||
use Scalar::Util qw/blessed/;
|
||||
|
||||
=head1 NAME
|
||||
|
||||
|
|
@ -616,11 +617,13 @@ sub processTransaction {
|
|||
# determine object type
|
||||
my $transaction;
|
||||
my $paymentAddress;
|
||||
if ($object->isa('WebGUI::Shop::Transaction')) {
|
||||
$transaction = $object;
|
||||
}
|
||||
elsif ($object->isa('WebGUI::Shop::Address')) {
|
||||
$paymentAddress = $object;
|
||||
if (blessed $object) {
|
||||
if ($object->isa('WebGUI::Shop::Transaction')) {
|
||||
$transaction = $object;
|
||||
}
|
||||
elsif ($object->isa('WebGUI::Shop::Address')) {
|
||||
$paymentAddress = $object;
|
||||
}
|
||||
}
|
||||
|
||||
# Setup dynamic transaction
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue