Commit 0ca70772 authored by Dainis Abols's avatar Dainis Abols
Browse files

Fixed empty song top

v4.0.4
parent 3b625254
......@@ -129,7 +129,6 @@ class VotesController extends ActionController
{
// Gather request data
$song_id = $this->request->hasArgument('song_id') ? $this->request->getArgument('song_id') : null;
$song_pid = $this->songRepository->findByUid($song_id)->getPid();
$isAdmin = $this->request->hasArgument('admin') && $this->request->getArgument('admin') == 1 ? true : false;
$timePeriod = $this->request->hasArgument('time_period') ? $this->request->getArgument('time_period') : time();
......@@ -137,6 +136,7 @@ class VotesController extends ActionController
if ($song_id) {
$VoteModel = new Vote();
$Datahelper = new DataHelper();
$song_pid = $this->songRepository->findByUid($song_id)->getPid();
// Check if admin increase request
if ($isAdmin) {
......
......@@ -4,7 +4,7 @@
## Version
4.0.3
4.0.4
## Dependencies
......
......@@ -8,7 +8,7 @@
<div class="songName">{song.artist} - {song.title}</div>
</div>
<label class="songVote">
<f:form.radio class="vote-radio" name="song_id" value="{song.uid}"/>
<f:form.radio class="vote-radio" name="song_id" value="{song.uid}" additionalAttributes="{required: ''}"/>
<span class="checkmark"></span>
</label>
</label>
{
"name": "luitd/lu-nabamusic",
"version": "4.0.3",
"version": "4.0.4",
"description": "Radio NABA plugin used for live stream, song tops and much more",
"type": "typo3-cms-extension",
"keywords": [
......
......@@ -13,7 +13,7 @@ $EM_CONF[$_EXTKEY] = [
'modify_tables' => '',
'clearCacheOnLoad' => 1,
'lockType' => '',
'version' => '4.0.3',
'version' => '4.0.4',
'constraints' => [
'depends' => [
'typo3' => '10.0.0-10.9.99',
......
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