Bug 20144: [sql_modes] Fix GROUP BY clause in Virtualshelves search (DT)

Fix for:
'koha_kohadev.vs.shelfname' isn't in GROUP BY

t/db_dependent/Utils/Datatables_Virtualshelves.t

Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
Jonathan Druart 2018-02-06 15:43:09 -03:00
parent 3f69f6e1c8
commit fb16189e0b
1 changed files with 2 additions and 1 deletions

View File

@ -95,7 +95,8 @@ sub search {
$limit = "LIMIT $dt_params->{iDisplayStart},$dt_params->{iDisplayLength}";
}
my $group_by = " GROUP BY vs.shelfnumber";
my $group_by = " GROUP BY vs.shelfnumber, vs.shelfname, vs.owner, vs.category,
vs.created_on, vs.lastmodified, bo.surname, bo.firstname, vs.sortfield ";
my $query = join(
" ",