Bug 16276: [QA Follow-up] Only track when pref is enabled
authorMarcel de Rooy <m.de.rooy@rijksmuseum.nl>
Fri, 19 Aug 2016 10:23:01 +0000 (12:23 +0200)
committerKyle M Hall <kyle@bywatersolutions.com>
Tue, 13 Sep 2016 17:27:43 +0000 (17:27 +0000)
commit95fe4347581cba70bdf36c3f3f1c43e1b765c2d7
tree613fe2a532a3359eb8e50a6de911437718f0a3a6
parent183fdc83f04484eab831be58b5bdef9f14aec963
Bug 16276: [QA Follow-up] Only track when pref is enabled

Do not track when the pref has not been enabled.
This patch moves the conditional update in Auth.pm to Koha::Patron.
And adds a test for the new track_login method.

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
C4/Auth.pm
Koha/Patron.pm
t/db_dependent/Members.t