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

(-)a/Koha/Acquisition/Basket.pm (-1 / +2 lines)
Lines 54-60 Returns the basket group associated to this basket Link Here
54
54
55
sub basket_group {
55
sub basket_group {
56
    my ($self) = @_;
56
    my ($self) = @_;
57
    my $basket_group_rs = $self->_result->basketgroupid;
57
58
    my $basket_group_rs = $self->_result->basket_group;
58
    return unless $basket_group_rs;
59
    return unless $basket_group_rs;
59
    return Koha::Acquisition::BasketGroup->_new_from_dbic( $basket_group_rs );
60
    return Koha::Acquisition::BasketGroup->_new_from_dbic( $basket_group_rs );
60
}
61
}
(-)a/Koha/Schema/Result/Aqbasket.pm (-1 / +12 lines)
Lines 328-333 __PACKAGE__->has_many( Link Here
328
  { cascade_copy => 0, cascade_delete => 0 },
328
  { cascade_copy => 0, cascade_delete => 0 },
329
);
329
);
330
330
331
__PACKAGE__->belongs_to(
332
  "basket_group",
333
  "Koha::Schema::Result::Aqbasketgroup",
334
  { 'foreign.id' => "self.basketgroupid" },
335
  {
336
    is_deferrable => 1,
337
    join_type     => "LEFT",
338
    on_delete     => "RESTRICT",
339
    on_update     => "CASCADE",
340
  },
341
);
342
331
sub koha_object_class {
343
sub koha_object_class {
332
    'Koha::Acquisition::Basket';
344
    'Koha::Acquisition::Basket';
333
}
345
}
334
- 

Return to bug 24464