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 293-306 __PACKAGE__->belongs_to( Link Here
293
);
293
);
294
294
295
__PACKAGE__->belongs_to(
295
__PACKAGE__->belongs_to(
296
  "borrower",
296
  "patron",
297
  "Koha::Schema::Result::Borrower",
297
  "Koha::Schema::Result::Borrower",
298
  { borrowernumber => "borrowernumber" },
298
  { borrowernumber => "borrowernumber" },
299
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
299
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
300
);
300
);
301
301
302
__PACKAGE__->belongs_to(
302
__PACKAGE__->belongs_to(
303
  "branch",
303
  "library",
304
  "Koha::Schema::Result::Branch",
304
  "Koha::Schema::Result::Branch",
305
  { branchcode => "branchcode" },
305
  { branchcode => "branchcode" },
306
  {
306
  {
307
- 

Return to bug 30294