]> git.koha-community.org Git - koha.git/commit
Bug 20455: Fix sort patrons by date expired
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 26 Mar 2018 16:13:58 +0000 (13:13 -0300)
committerFridolin Somers <fridolin.somers@biblibre.com>
Tue, 22 May 2018 09:22:42 +0000 (11:22 +0200)
commitbbd93258932202850b6cf9dd1e6a6a338e2b980c
treed3b4f59f8e4b33a6f3e9fa653370f21103bec2a4
parent8314711a0e1dec71dda27f7b40be4d95944bd924
Bug 20455: Fix sort patrons by date expired

We may need to apply this change for all other occurrences in our
codebase.

Test plan:
- Make sure sample patron data is loaded and you have a patron without a
date expired defined
- Make an empty search for all patrons or another search that gives you
a good amount of results
- Try to sort on the date expired column

=> Without this patch you get
Odd number of elements in anonymous hash
at /home/vagrant/kohaclone/C4/Utils/DataTables/Members.pm line 189.
output_pref is called with 'dateonly' (ref SCALAR), not a DateTime
object

Signed-off-by: Mark Tompsett <mtompset@hotmail.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit 09eaaaebcd8e02dbb3d026304d6227bbdc146cca)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
C4/Utils/DataTables/Members.pm