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

(-)a/C4/Biblio.pm (+2 lines)
Lines 240-245 sub AddBiblio { Link Here
240
                }
240
                }
241
            )->store;
241
            )->store;
242
            $biblionumber = $biblio->biblionumber;
242
            $biblionumber = $biblio->biblionumber;
243
            Koha::Exceptions::ObjectNotCreated->throw unless $biblio;
243
244
244
            my ($cn_sort) = GetClassSort( $olddata->{'biblioitems.cn_source'}, $olddata->{'cn_class'}, $olddata->{'cn_item'} );
245
            my ($cn_sort) = GetClassSort( $olddata->{'biblioitems.cn_source'}, $olddata->{'cn_class'}, $olddata->{'cn_item'} );
245
            my $biblioitem = Koha::Biblioitem->new(
246
            my $biblioitem = Koha::Biblioitem->new(
Lines 276-281 sub AddBiblio { Link Here
276
                    agerestriction => $olddata->{agerestriction},
277
                    agerestriction => $olddata->{agerestriction},
277
                }
278
                }
278
            )->store;
279
            )->store;
280
            Koha::Exceptions::ObjectNotCreated->throw unless $biblioitem;
279
            $biblioitemnumber = $biblioitem->biblioitemnumber;
281
            $biblioitemnumber = $biblioitem->biblioitemnumber;
280
282
281
            _koha_marc_update_bib_ids( $record, $frameworkcode, $biblionumber, $biblioitemnumber );
283
            _koha_marc_update_bib_ids( $record, $frameworkcode, $biblionumber, $biblioitemnumber );
(-)a/Koha/Exceptions.pm (-1 / +4 lines)
Lines 18-23 use Exception::Class ( Link Here
18
        isa => 'Koha::Exceptions::Exception',
18
        isa => 'Koha::Exceptions::Exception',
19
        description => 'The required object doesn\'t exist',
19
        description => 'The required object doesn\'t exist',
20
    },
20
    },
21
    'Koha::Exceptions::ObjectNotCreated' => {
22
        isa => 'Koha::Exceptions::Exception',
23
        description => 'The object have not been created',
24
    },
21
    'Koha::Exceptions::CannotDeleteDefault' => {
25
    'Koha::Exceptions::CannotDeleteDefault' => {
22
        isa => 'Koha::Exceptions::Exception',
26
        isa => 'Koha::Exceptions::Exception',
23
        description => 'The default value cannot be deleted'
27
        description => 'The default value cannot be deleted'
24
- 

Return to bug 26518