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