From 15734ad2c39ede2fabc70372d4d10c3ddd88e9de Mon Sep 17 00:00:00 2001 From: Lucas Gass Date: Thu, 5 Dec 2024 16:33:14 +0000 Subject: [PATCH] Revert "Bug 37870: Remove warning if biblionumber is not passed" This reverts commit 1946bdde6e0cfd507b9fe3c0390051f5cbed03e7. Signed-off-by: Lucas Gass --- Koha/UI/Form/Builder/Biblio.pm | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/Koha/UI/Form/Builder/Biblio.pm b/Koha/UI/Form/Builder/Biblio.pm index 13ecc67ff6..0b4422992b 100644 --- a/Koha/UI/Form/Builder/Biblio.pm +++ b/Koha/UI/Form/Builder/Biblio.pm @@ -52,11 +52,8 @@ sub new { my $self = {}; - if ( exists $self->{biblionumber} ) { - $self->{biblionumber} = $params->{biblionumber} =~ s/\D//gr; - - # just in case biblionumber obtained from CGI and passed directly here contains weird characters like spaces - } + $self->{biblionumber} = $params->{biblionumber} =~ s/\D//gr; + # just in case biblionumber obtained from CGI and passed directly here contains weird characters like spaces bless $self, $class; return $self;