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:
parent
4606ceb05e
commit
edefd14f23
|
|
@ -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']
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue