Skip to content

Commit

Permalink
Fix the component group status. Closes #2731
Browse files Browse the repository at this point in the history
  • Loading branch information
jbrooksuk committed Jun 14, 2018
1 parent 749c831 commit 4aff0dd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/Models/ComponentGroup.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ class ComponentGroup extends Model implements HasPresenter
*/
public function components()
{
return $this->hasMany(Component::class, 'group_id', 'id')->orderBy('order');
return $this->hasMany(Component::class, 'group_id', 'id');
}

/**
Expand All @@ -119,7 +119,7 @@ public function incidents()
*/
public function enabled_components()
{
return $this->components()->enabled();
return $this->components()->enabled()->orderBy('order');
}

/**
Expand Down

0 comments on commit 4aff0dd

Please sign in to comment.