]> git.koha-community.org Git - koha.git/commit
Bug 12633: Remove SQLHelper in C4::Members
authorJonathan Druart <jonathan.druart@biblibre.com>
Mon, 13 Apr 2015 14:21:50 +0000 (16:21 +0200)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Fri, 15 May 2015 18:38:05 +0000 (15:38 -0300)
commite196f19e2d7d6825e71306f45bcda0f3903a7a7f
tree9612fcf8dafc70dc561481ff98156ee7c3262b64
parent52ee96316f95efbc653d3c4f45d438f1e392679b
Bug 12633: Remove SQLHelper in C4::Members

This is the only places where SQLHelper is still called.
The C4::Members::Search is not used anymore, but ModMember and
AddMember.

This patch replaced the calls to SQLHelper to use DBIX::Class.
TODO: Move them to Koha::Borrower.

Test plan:
1/ Make sure the patron search still works (no changes expected since the
code was not in used).
2/ Add a patron with all fields filled
3/ Add another patron with some fields filled
4/ Update them with other values
5/ Delete them

You should not get any errors.

Signed-off-by: Mirko Tietgen <mirko@abunchofthings.net>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
C4/Members.pm
t/db_dependent/Members.t