projects
/
Business-OnlinePayment-InternetSecure.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9b6828c
)
get_fields now filters out undefs in 3.x
author
fbriere
<fbriere>
Tue, 14 Feb 2006 01:38:31 +0000
(
01:38
+0000)
committer
fbriere
<fbriere>
Tue, 14 Feb 2006 01:38:31 +0000
(
01:38
+0000)
InternetSecure.pm
patch
|
blob
|
history
diff --git
a/InternetSecure.pm
b/InternetSecure.pm
index
58a6ce7
..
b90f187
100755
(executable)
--- a/
InternetSecure.pm
+++ b/
InternetSecure.pm
@@
-43,6
+43,18
@@
sub set_defaults {
));
}
+# OnlinePayment's get_fields now filters out undefs in 3.x. :(
+#
+sub get_fields {
+ my ($self, @fields) = @_;
+
+ my %content = $self->content;
+
+ my %new = map +($_ => $content{$_}), @fields;
+
+ return %new;
+}
+
# OnlinePayment's remap_fields is buggy, so we simply rewrite it
#
sub remap_fields {