Commit dd3b36f8 authored by Stefan Busemann's avatar Stefan Busemann
Browse files

[BUGFIX] Respect settings as array

parent 9a4b5c99
<?php
namespace T3o\Typo3Roadmap\Controller;
/**
......@@ -43,8 +44,8 @@ class FeatureController extends \TYPO3\CMS\Extbase\Mvc\Controller\ActionControll
public function listFeaturesAction()
{
if($this->settings[featurearea]!=""){
$featureArea=$this->featureAreaRepository->findByUid($this->settings[featurearea]);
if ($this->settings['featurearea'] != "") {
$featureArea = $this->featureAreaRepository->findByUid($this->settings['featurearea']);
$this->view->assign('featureArea', $featureArea);
}
......@@ -59,9 +60,9 @@ class FeatureController extends \TYPO3\CMS\Extbase\Mvc\Controller\ActionControll
*/
public function showFeatureRecordsAction()
{
$features=[];
$ids = explode(',',$this->settings['feature']);
foreach($ids as $key => $id){
$features = [];
$ids = explode(',', $this->settings['feature']);
foreach ($ids as $key => $id) {
$features[$id] = $this->featureRepository->findByUid($id);
}
$this->view->assign('features', $features);
......@@ -74,9 +75,9 @@ class FeatureController extends \TYPO3\CMS\Extbase\Mvc\Controller\ActionControll
*/
public function showFeatureAreaRecordsAction()
{
$featureAreas=[];
$ids = explode(',',$this->settings['featureArea']);
foreach($ids as $key => $id){
$featureAreas = [];
$ids = explode(',', $this->settings['featureArea']);
foreach ($ids as $key => $id) {
$featureAreas[$id] = $this->featureAreaRepository->findByUid($id);
}
$this->view->assign('featureAreas', $featureAreas);
......
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