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

[BUGFIX] Respect settings as array

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