]> git.koha-community.org Git - koha.git/commit
Bug 27021: Make chaining ->empty always return an empty resultset
authorTomas Cohen Arazi <tomascohen@theke.io>
Fri, 13 Nov 2020 18:54:32 +0000 (15:54 -0300)
committerAndrew Fuerste-Henry <andrew@bywatersolutions.com>
Wed, 9 Dec 2020 20:03:29 +0000 (20:03 +0000)
commit1e7d04a6089bc3f57f3ff52363cda26cda28d126
tree5133c67d3892e082f6a94d1dfade18390c5088e3
parentf3242ccc7c5dbf61e0fa7bdda20042c64ba34434
Bug 27021: Make chaining ->empty always return an empty resultset

This patch borrows the implementation Martin did on bug 27002, to
woraround this issue, and implements it properly on the
Koha::Objects->empty method.

To test:
1. Apply the regression tests patch
2. Run:
   $ kshell
  k$ prove t/db_dependent/Koha/Objects.t
=> FAIL: Tests fail! The resultset should be empty and it isn't!
3. Apply this patch
4. Repeat 2
=> SUCCESS: Tests pass!
5. Sign off!

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit 55835ccfaffef48b924857e18bfd964aebda3a0a)

Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com>
Koha/Objects.pm