type => 'error', code => 'duplicate_code'
};
} else {
my $restriction = Koha::RestrictionType->new({
my $restriction = Koha::Patron::Restriction::Type->new({
code => $code,
display_text => $display_text
});
-