]> git.koha-community.org Git - koha.git/commit
Bug 15151: Avoid DB access to load C4::Members
authorTomas Cohen Arazi <tomascohen@theke.io>
Fri, 6 Nov 2015 14:21:56 +0000 (11:21 -0300)
committerLiz Rea <wizzyrea@gmail.com>
Thu, 10 Dec 2015 01:42:48 +0000 (14:42 +1300)
commitede5e7c6884295e0dbe77618a03cd4a8cef723c6
tree43b15909c6b2df75ab4d0ca90723ed0ae31994b0
parent9bcc69167c1f4fdb43119569f81ca912ce788ec9
Bug 15151: Avoid DB access to load C4::Members

In order to avoid loading Koha::NorwegianPatronDB a DB query was
used. Instead, a require should be used. This causes non-db_dependent
tests that load C4::Members to fail.

To test:
- Shut mysql down
  $ sudo service mysql stop
- Run the tests:
  prove t/Circulation_barcodedecode.t
=> FAIL: DB connection is expected, tests fail
- Apply the patch
- Run the tests:
  prove t/Circulation_barcodedecode.t
=> SUCCESS: Tests pass
- Sign off .-D

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
cherry-picked from f25fe6ddb4a340f12613784dc841ab5bfd672d6b
Signed-off-by: Frédéric Demians <f.demians@tamil.fr>
(cherry picked from commit bc668dccd3af3fba14e04a764499b0d762c63455)
Signed-off-by: Liz Rea <wizzyrea@gmail.com>
C4/Members.pm
t/Circulation_barcodedecode.t