From 327588aa6c3a91d8e7d0aec164aea1dcd1ab26df Mon Sep 17 00:00:00 2001 From: Kelvin Date: Sun, 3 Apr 2016 17:57:00 +0100 Subject: [PATCH] Make lyrics optional --- app/Commands/EditTrackCommand.php | 4 ---- public/templates/directives/track-editor.html | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/app/Commands/EditTrackCommand.php b/app/Commands/EditTrackCommand.php index 0e2ee814..5cdd8af2 100644 --- a/app/Commands/EditTrackCommand.php +++ b/app/Commands/EditTrackCommand.php @@ -74,10 +74,6 @@ class EditTrackCommand extends CommandBase 'album_id' => 'exists:albums,id' ]; - if ($isVocal) { - $rules['lyrics'] = 'required'; - } - if (isset($this->_input['track_type_id']) && $this->_input['track_type_id'] == 2) { $rules['show_song_ids'] = 'required|exists:show_songs,id'; } diff --git a/public/templates/directives/track-editor.html b/public/templates/directives/track-editor.html index f8714da8..83406389 100644 --- a/public/templates/directives/track-editor.html +++ b/public/templates/directives/track-editor.html @@ -27,7 +27,7 @@
- +
{{errors.lyrics}}