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:
parent
3f69f6e1c8
commit
fb16189e0b
|
|
@ -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(
|
||||
" ",
|
||||
|
|
|
|||
Loading…
Reference in New Issue