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;