From 675ba179015b589c4a8622d5bf6a6b0ff7d5b0fd Mon Sep 17 00:00:00 2001 From: nelsonlaquet Date: Tue, 24 Sep 2013 00:47:00 -0500 Subject: [PATCH] Fixed dropdown layout issue Fixed show songs playing wrong track --- app/controllers/Api/Web/TracksController.php | 4 +--- app/views/shared/_app_layout.blade.php | 2 +- public/scripts/shared/layout.coffee | 6 ++++++ public/styles/components.less | 1 + public/styles/layout.less | 12 +++++++++++- 5 files changed, 20 insertions(+), 5 deletions(-) diff --git a/app/controllers/Api/Web/TracksController.php b/app/controllers/Api/Web/TracksController.php index 226b2587..61b3180b 100644 --- a/app/controllers/Api/Web/TracksController.php +++ b/app/controllers/Api/Web/TracksController.php @@ -64,7 +64,7 @@ $tracks = []; $ids = []; - foreach ($query->get() as $track) { + foreach ($query->get(['tracks.*']) as $track) { $tracks[] = Track::mapPublicTrackSummary($track); $ids[] = $track->id; } @@ -93,7 +93,6 @@ return Response::json(Track::mapPrivateTrackShow($track), 200); } - private function applyFilters($query) { if (Input::has('order')) { $order = \Input::get('order'); @@ -127,7 +126,6 @@ $join->on('tracks.id', '=', 'show_song_track.track_id'); }); $query->whereIn('show_song_track.show_song_id', Input::get('songs')); - $query->select('tracks.*'); } return $query; diff --git a/app/views/shared/_app_layout.blade.php b/app/views/shared/_app_layout.blade.php index 05689c54..60aeed37 100644 --- a/app/views/shared/_app_layout.blade.php +++ b/app/views/shared/_app_layout.blade.php @@ -24,7 +24,7 @@
- pony.fm + pony.fm (beta)
@if (Auth::check())