Bug 10855: Remove additional field values when subscription is removed
[koha.git] / C4 / Labels / Template.pm
blob17ccea4bd292b4f0801370e50b094891659d7ecf
1 package C4::Labels::Template;
3 use strict;
4 use warnings;
6 use base qw(C4::Creators::Template);
8 use autouse 'Data::Dumper' => qw(Dumper);
10 BEGIN {
11 use version; our $VERSION = qv('3.07.00.049');
14 use constant TEMPLATE_TABLE => 'creator_templates';
16 __PACKAGE__ =~ m/^C4::(.+)::.+$/;
17 my $me = $1;
19 sub new {
20 my $self = shift;
21 push @_, "creator", $me;
22 return $self->SUPER::new(@_);
25 sub retrieve {
26 my $self = shift;
27 push @_, "table_name", TEMPLATE_TABLE, "creator", $me;
28 return $self->SUPER::retrieve(@_);
31 sub delete {
32 my $self = shift;
33 push @_, "table_name", TEMPLATE_TABLE, "creator", $me;
34 return $self->SUPER::delete(@_);
37 sub save {
38 my $self = shift;
39 push @_, "table_name", TEMPLATE_TABLE, "creator", $me;
40 return $self->SUPER::save(@_);