Revert "Bug 14637: Fix add patron category under MySQL 5.7"
This reverts commit 047c31b424.
This commit is contained in:
parent
6702eec5e0
commit
8cf6738afd
|
|
@ -35,41 +35,6 @@ Koha::Patron;;Category - Koha Patron;;Category Object class
|
|||
|
||||
=cut
|
||||
|
||||
=head3 effective_BlockExpiredPatronOpacActions
|
||||
|
||||
my $BlockExpiredPatronOpacActions = $category->effective_BlockExpiredPatronOpacActions
|
||||
|
||||
Return the effective BlockExpiredPatronOpacActions value.
|
||||
|
||||
=cut
|
||||
|
||||
sub effective_BlockExpiredPatronOpacActions {
|
||||
my( $self) = @_;
|
||||
return C4::Context->preference('BlockExpiredPatronOpacActions') if $self->BlockExpiredPatronOpacActions == -1;
|
||||
return $self->BlockExpiredPatronOpacActions
|
||||
}
|
||||
|
||||
=head3 store
|
||||
|
||||
=cut
|
||||
|
||||
sub store {
|
||||
my ($self) = @_;
|
||||
|
||||
$self->dateofbirthrequired(undef)
|
||||
if not defined $self->dateofbirthrequired
|
||||
or $self->dateofbirthrequired eq '';
|
||||
|
||||
$self->upperagelimit(undef)
|
||||
if not defined $self->upperagelimit
|
||||
or $self->upperagelimit eq '';
|
||||
|
||||
$self->checkprevcheckout('inherit')
|
||||
unless defined $self->checkprevcheckout;
|
||||
|
||||
return $self->SUPER::store;
|
||||
}
|
||||
|
||||
=head3 default_messaging
|
||||
|
||||
my $messaging = $category->default_messaging();
|
||||
|
|
|
|||
Loading…
Reference in New Issue