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

(-)a/Koha/UI/Form/Builder/Biblio.pm (-1 / +2 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
    $self->{biblionumber} = $params->{biblionumber} =~ s/\D//gr
53
        ;   # just in case biblionumber obtained from CGI and passed direcly here contains a weird characters like space
53
54
54
    bless $self, $class;
55
    bless $self, $class;
55
    return $self;
56
    return $self;
(-)a/cataloguing/addbiblio.pl (-1 / +2 lines)
Lines 546-551 my $biblio; Link Here
546
if ($biblionumber) {
546
if ($biblionumber) {
547
547
548
    $biblio = Koha::Biblios->find($biblionumber);
548
    $biblio = Koha::Biblios->find($biblionumber);
549
    $biblionumber =
550
        $biblio->biblionumber;    # just in case $biblionumber obtained from CGI contains a weird characters like space
549
551
550
    unless ($biblio) {
552
    unless ($biblio) {
551
        $biblionumber = undef;
553
        $biblionumber = undef;
552
- 

Return to bug 36794