https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=34639

--- Comment #4 from Lari Taskula <[email protected]> ---
I do not yet understand why but something changed after prefetching
current_branchtransfers. It returns a transfer even if it shouldn't when the
transfer contains a datetime in datearrived or datecancelled.

Koha/Schema/Result/Item.pm
...
__PACKAGE__->has_many(
  "current_branchtransfers",
  "Koha::Schema::Result::Branchtransfer",
  { 'foreign.itemnumber' => 'self.itemnumber' },
  {
      where => { datearrived => undef, datecancelled => undef },
      order_by => [ { -desc => 'datesent' }, { -asc => 'daterequested' } ]
  }
);

current_branchtransfers by itself works fine but together with the prefetch in
detail.pl something gets broken.

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to