X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;ds=sidebyside;f=FS%2FFS%2Fpart_event%2FAction%2Fpkg_cancel.pm;h=1eeb4a8ffb0f591e4d178b144cecdc4039d885e5;hb=edd6a339eb7ea156272264ffd164711fc8af792e;hp=2bfd35cadc7de643aa4ec4a5e192d0ca704376e0;hpb=0fb307c305e4bc2c9c27dc25a3308beae3a4d33c;p=freeside.git diff --git a/FS/FS/part_event/Action/pkg_cancel.pm b/FS/FS/part_event/Action/pkg_cancel.pm index 2bfd35cad..1eeb4a8ff 100644 --- a/FS/FS/part_event/Action/pkg_cancel.pm +++ b/FS/FS/part_event/Action/pkg_cancel.pm @@ -21,7 +21,8 @@ sub option_fields { sub default_weight { 20; } sub do_action { - my( $self, $cust_pkg, $cust_event ) = @_; + my( $self, $object, $cust_event ) = @_; + my $cust_pkg = $self->cust_pkg($object); my $error = $cust_pkg->cancel( 'reason' => $self->option('reasonnum') ); die $error if $error;