Bug 10020: (RM followup) DBIx update / delete leftover file
[koha.git] / C4 / Patroncards / Batch.pm
blob11c0661c7d9e2d9c40cc690c6e7e3ecbf470a7dd
1 package C4::Patroncards::Batch;
3 use strict;
4 use warnings;
6 use base qw(C4::Creators::Batch);
8 use autouse 'Data::Dumper' => qw(Dumper);
10 BEGIN {
11 use version; our $VERSION = qv('3.07.00.049');
14 __PACKAGE__ =~ m/^C4::(.+)::.+$/;
15 my $me = $1;
17 sub new {
18 my $self = shift;
19 push @_, "creator", $me;
20 return $self->SUPER::new(@_);
23 sub save {
24 my $self = shift;
25 push @_, "creator", $me;
26 return $self->SUPER::save(@_);
29 sub retrieve {
30 my $self = shift;
31 push @_, "creator", $me;
32 return $self->SUPER::retrieve(@_);
35 sub delete {
36 if (ref($_[0])) {
37 my $self = shift; # check to see if this is a method call
38 push @_, "creator", $me;
39 return $self->SUPER::delete(@_);
41 else {
42 push @_, "creator", $me;
43 return __PACKAGE__->SUPER::delete(@_); # XXX: is this too hackish?