@@ -, +, @@ Koha::VirtualShelves commit 7e220e0d8f107cce63f32bfaa1919c04b4dea6e2 Bug 20179: [sql_modes] Remove GROUP BY in get_shelves_containing_record - Add public and privates shelves - Shares some of them - List them --- Koha/Virtualshelves.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) --- a/Koha/Virtualshelves.pm +++ a/Koha/Virtualshelves.pm @@ -55,7 +55,7 @@ sub get_private_shelves { }, { join => [ 'virtualshelfshares' ], - group_by => 'shelfnumber', + distinct => 'shelfnumber', order_by => 'shelfname', ( ( $page and $rows ) ? ( page => $page, rows => $rows ) : () ), } @@ -73,7 +73,7 @@ sub get_public_shelves { category => 2, }, { - group_by => 'shelfnumber', + distinct => 'shelfnumber', order_by => 'shelfname', ( ( $page and $rows ) ? ( page => $page, rows => $rows ) : () ), } @@ -116,7 +116,7 @@ sub get_some_shelves { }, { join => [ 'virtualshelfshares' ], - group_by => 'shelfnumber', + distinct => 'shelfnumber', order_by => { -desc => 'lastmodified' }, } ); --