Skip to content

Commit

Permalink
Merge pull request #3069 from CachetHQ/fix-component-group-status
Browse files Browse the repository at this point in the history
Fix the component group status
  • Loading branch information
jbrooksuk committed Jun 17, 2018
2 parents d7ffbee + 84bea58 commit 494badb
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 494badb

Please sign in to comment.