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

(-)a/Koha/Schema/Result/AccountlineLink.pm (-1 / +21 lines)
Lines 192-196 sub validate_link_integrity { Link Here
192
    return defined($linked_object) ? 1 : 0;
192
    return defined($linked_object) ? 1 : 0;
193
}
193
}
194
194
195
=head2 koha_objects_class
196
197
Missing POD for koha_objects_class.
198
199
=cut
200
201
sub koha_objects_class {
202
    'Koha::Account::Links';
203
}
204
205
=head2 koha_object_class
206
207
Missing POD for koha_object_class.
208
209
=cut
210
211
sub koha_object_class {
212
    'Koha::Account::Link';
213
}
214
195
# You can replace this text with custom code or comments, and it will be preserved on regeneration
215
# You can replace this text with custom code or comments, and it will be preserved on regeneration
196
1;
216
1;
(-)a/Koha/Schema/Result/Reserve.pm (-1 / +13 lines)
Lines 588-591 __PACKAGE__->belongs_to( Link Here
588
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
588
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
589
);
589
);
590
590
591
__PACKAGE__->has_many(
592
  "accountline_links",
593
  "Koha::Schema::Result::AccountlineLink",
594
  sub {
595
    my ($args) = @_;
596
    return {
597
      "$args->{foreign_alias}.link_type" => 'hold',
598
      "$args->{foreign_alias}.linked_id" => { '=' => { -ident => "$args->{self_alias}.reserve_id" } },
599
    };
600
  },
601
  { cascade_copy => 0, cascade_delete => 0 },
602
);
603
591
1;
604
1;
592
- 

Return to bug 40808