]> git.koha-community.org Git - koha.git/commit
Bug 26132: (follow-up) Add test to show errors in max issues amount calculation
authorJoonas Kylmälä <joonas.kylmala@helsinki.fi>
Wed, 4 Nov 2020 15:00:02 +0000 (17:00 +0200)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Wed, 4 Nov 2020 16:32:35 +0000 (17:32 +0100)
commitfe7abf020c6c13978ce84393b4877688b6f3ebce
tree0b0ecb0c31592a039b43943cdc322789b758f6d7
parente700fb8f4ec323102d4cd6967bc4fb589ddc4032
Bug 26132: (follow-up) Add test to show errors in max issues amount calculation

If you set default branch limits for issue quantity circulation
rules you will get errors when calling TooMany function.

To reproduce the error:
1) Apply this patch
2) Run prove t/db_dependent/Circulation/TooMany.t and notice the
   following error:

No method count found for Koha::Checkouts DBIx::Class::Storage::DBI::_dbh_execute(): DBI Exception: DBD::mysql::st execute failed: Unknown column 'item.homebranch' in 'where clause' [...]

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
t/db_dependent/Circulation/TooMany.t