Skip to content

Commit 494badb

Browse files
authored
Merge pull request #3069 from CachetHQ/fix-component-group-status
Fix the component group status
2 parents d7ffbee + 84bea58 commit 494badb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/Models/ComponentGroup.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ class ComponentGroup extends Model implements HasPresenter
9999
*/
100100
public function components()
101101
{
102-
return $this->hasMany(Component::class, 'group_id', 'id')->orderBy('order');
102+
return $this->hasMany(Component::class, 'group_id', 'id');
103103
}
104104

105105
/**
@@ -119,7 +119,7 @@ public function incidents()
119119
*/
120120
public function enabled_components()
121121
{
122-
return $this->components()->enabled();
122+
return $this->components()->enabled()->orderBy('order');
123123
}
124124

125125
/**

0 commit comments

Comments
 (0)