Commit 1473d3dc authored by Andreas Heimann's avatar Andreas Heimann

fixed the requirement to always upload a new cover when editing playlists

parent 058e1316
......@@ -126,7 +126,7 @@ class PlaylistController extends AbstractController
$form = $this->createFormBuilder()
->add('title', TextType::class, ['label' => 'Title', 'data' => $playlist->getTitle(), 'row_attr' => array('class' => 'tags-field'), 'required' => true])
->add('description', TextareaType::class, ['label' => 'Description', 'data' => $playlist->getDescription(), 'attr' => array('rows' => 5), 'row_attr' => array('class' => 'tags-field'), 'required' => false])
->add('coverPath', FileType::class, ['label' => 'Cover Image', 'row_attr' => array('class' => 'upload-field'), 'attr' => array('accept' => '.png, .jpg, .jpeg')])
->add('coverPath', FileType::class, ['label' => 'Cover Image', 'row_attr' => array('class' => 'upload-field'), 'attr' => array('accept' => '.png, .jpg, .jpeg'), 'required' => false])
->add('save', SubmitType::class, ['label' => 'Save'])
->getForm();
$form->handleRequest($request);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment