From 41cbdb2e9747715098772c1dec7338d06a20c9d2 Mon Sep 17 00:00:00 2001 From: Josef Citrine Date: Mon, 21 Nov 2016 17:08:34 +0000 Subject: [PATCH] Fixed HWC checkbox detection --- app/Commands/EditTrackCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Commands/EditTrackCommand.php b/app/Commands/EditTrackCommand.php index ebfc27d9..e98a280f 100644 --- a/app/Commands/EditTrackCommand.php +++ b/app/Commands/EditTrackCommand.php @@ -181,7 +181,7 @@ class EditTrackCommand extends CommandBase if (isset($this->_input['hwc_submit']) && new \DateTime() < new \DateTime("2016-12-18 00:00:00")) { $playlist = Playlist::where('user_id', 22549)->first(); - if ($this->_input['hwc_submit'] == true) { + if ($this->_input['hwc_submit'] == 'true') { if (!$playlist->tracks()->get()->contains($track)) { $songIndex = $playlist->trackCount() + 1; $playlist->tracks()->attach($track, ['position' => $songIndex]);