View | Details | Raw Unified | Return to bug 36794
Collapse All | Expand All

(-)a/Koha/UI/Form/Builder/Biblio.pm (-1 / +3 lines)
Lines 49-55 sub new { Link Here
49
    my ( $class, $params ) = @_;
49
    my ( $class, $params ) = @_;
50
50
51
    my $self = {};
51
    my $self = {};
52
    $self->{biblionumber} = $params->{biblionumber};
52
53
    $self->{biblionumber} = $params->{biblionumber} =~ s/\D//gr;
54
    # just in case biblionumber obtained from CGI and passed directly here contains a weird characters like space
53
55
54
    bless $self, $class;
56
    bless $self, $class;
55
    return $self;
57
    return $self;
(-)a/cataloguing/addbiblio.pl (-1 / +4 lines)
Lines 541-546 my ( $template, $loggedinuser, $cookie ) = get_template_and_user( Link Here
541
my $biblio;
541
my $biblio;
542
if ($biblionumber){
542
if ($biblionumber){
543
    $biblio = Koha::Biblios->find($biblionumber);
543
    $biblio = Koha::Biblios->find($biblionumber);
544
545
    # just in case $biblionumber obtained from CGI contains a weird characters like space
546
    $biblionumber = $biblio->biblionumber if $biblio;
547
544
    unless ( $biblio ) {
548
    unless ( $biblio ) {
545
        $biblionumber = undef;
549
        $biblionumber = undef;
546
        $template->param( bib_doesnt_exist => 1 );
550
        $template->param( bib_doesnt_exist => 1 );
547
- 

Return to bug 36794