From 726097bc7bf1ca12409eb3e5bbf7005ab4f4bb0f Mon Sep 17 00:00:00 2001 From: Josef Citrine Date: Mon, 29 Aug 2016 01:03:26 +0100 Subject: [PATCH] Only show unclassified tracks if they are part of MLPMA --- app/Http/Controllers/Api/Web/TracksController.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/Http/Controllers/Api/Web/TracksController.php b/app/Http/Controllers/Api/Web/TracksController.php index ee24c2bb..aae95438 100644 --- a/app/Http/Controllers/Api/Web/TracksController.php +++ b/app/Http/Controllers/Api/Web/TracksController.php @@ -278,6 +278,7 @@ class TracksController extends ApiControllerBase } }); + $query->join('mlpma_tracks', 'tracks.id', '=', 'mlpma_tracks.track_id'); } if (Input::has('songs')) {