From 8cf6738afde255844d5feb216edbfb3eada51f28 Mon Sep 17 00:00:00 2001 From: Mason James Date: Tue, 14 Nov 2017 03:38:16 +1300 Subject: [PATCH] Revert "Bug 14637: Fix add patron category under MySQL 5.7" This reverts commit 047c31b4246bb5eb0f20238355190f9535dc4721. --- Koha/Patron/Category.pm | 35 ----------------------------------- 1 file changed, 35 deletions(-) diff --git a/Koha/Patron/Category.pm b/Koha/Patron/Category.pm index 31745abfd2..7b17c8c084 100644 --- a/Koha/Patron/Category.pm +++ b/Koha/Patron/Category.pm @@ -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(); -- 2.39.5