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

(-)a/Koha/Recall.pm (-2 / +2 lines)
Lines 78-84 Returns the related Koha::Patron object for this recall. Link Here
78
78
79
sub patron {
79
sub patron {
80
    my ( $self ) = @_;
80
    my ( $self ) = @_;
81
    my $patron_rs = $self->_result->borrower;
81
    my $patron_rs = $self->_result->patron;
82
    return unless $patron_rs;
82
    return unless $patron_rs;
83
    return Koha::Patron->_new_from_dbic( $patron_rs );
83
    return Koha::Patron->_new_from_dbic( $patron_rs );
84
}
84
}
Lines 93-99 Returns the related Koha::Library object for this recall. Link Here
93
93
94
sub library {
94
sub library {
95
    my ( $self ) = @_;
95
    my ( $self ) = @_;
96
    my $library_rs = $self->_result->branch;
96
    my $library_rs = $self->_result->library;
97
    return unless $library_rs;
97
    return unless $library_rs;
98
    return Koha::Library->_new_from_dbic( $library_rs );
98
    return Koha::Library->_new_from_dbic( $library_rs );
99
}
99
}
(-)a/Koha/Schema/Result/Recall.pm (-3 / +2 lines)
Lines 312-325 __PACKAGE__->belongs_to( Link Here
312
);
312
);
313
313
314
__PACKAGE__->belongs_to(
314
__PACKAGE__->belongs_to(
315
  "borrower",
315
  "patron",
316
  "Koha::Schema::Result::Borrower",
316
  "Koha::Schema::Result::Borrower",
317
  { borrowernumber => "borrowernumber" },
317
  { borrowernumber => "borrowernumber" },
318
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
318
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
319
);
319
);
320
320
321
__PACKAGE__->belongs_to(
321
__PACKAGE__->belongs_to(
322
  "branch",
322
  "library",
323
  "Koha::Schema::Result::Branch",
323
  "Koha::Schema::Result::Branch",
324
  { branchcode => "branchcode" },
324
  { branchcode => "branchcode" },
325
  {
325
  {
326
- 

Return to bug 30294