Remove relationship loading from Groups class getRange function

This commit is contained in:
DariusIII
2017-10-27 11:17:34 +02:00
parent fc7b083254
commit 747379e556
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -1,4 +1,5 @@
2017-10-27 DariusIII
* Chg: Remove relationship loading from Groups class getRange function
* Fix: Fix releases count on admin group-list page
* Chg: Update Groups class getRange function
2017-10-26 DariusIII
+1 -1
View File
@@ -209,7 +209,7 @@ class Groups
*/
public function getRange($start = false, $num = -1, $groupname = '', $active = -1)
{
$groups = Group::query()->with('release.id')->groupBy(['id'])->orderBy('name');
$groups = Group::query()->groupBy(['id'])->orderBy('name');
if ($groupname !== '') {
$groups->where('name', 'LIKE', $groupname);