Fixes part of #2775
This commit is contained in:
@@ -38,7 +38,7 @@ class IncidentUpdateController extends AbstractApiController
|
||||
*/
|
||||
public function index(Incident $incident)
|
||||
{
|
||||
$updates = IncidentUpdate::orderBy('created_at', 'desc');
|
||||
$updates = $incident->updates()->orderBy('created_at', 'desc');
|
||||
|
||||
if ($sortBy = Binput::get('sort')) {
|
||||
$direction = Binput::has('order') && Binput::get('order') == 'desc';
|
||||
|
||||
Reference in New Issue
Block a user