Bug 29393: Prevent SQL errors when SQL strict mode is set

Signed-off-by: Matthias Le Gac <matthias.le-gac@inlibro.com>
Signed-off-by: Phan Tung Bui <phan-tung.bui@inlibro.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
Julian Maurice 2023-04-18 16:28:34 +02:00 committed by Katrin Fischer
parent 4606ceb05e
commit edefd14f23
No known key found for this signature in database
GPG Key ID: 0EF6E2C03357A834
1 changed files with 5 additions and 1 deletions

View File

@ -29,7 +29,11 @@ sub GetByModule {
return Koha::Notice::Templates->search(
{ module => $module },
{ group_by => 'code', order_by => ['name'] }
{
group_by => [ 'code', 'name' ],
columns => [ 'code', 'name' ],
order_by => ['name']
}
);
}