Skip to content

Commit 4aff0dd

Browse files
committed
Fix the component group status. Closes #2731
1 parent 749c831 commit 4aff0dd

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)