Commit 96a06292 authored by Thomas Löffler's avatar Thomas Löffler

Merge branch '21-extension-throws-error' into 'master'

Resolve "Extension throws error"

Closes #21

See merge request !13
parents 9a4b5c99 3973dd51
<?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((int)$this->settings['featurearea']);
$this->view->assign('featureArea', $featureArea);
}
......@@ -59,10 +60,10 @@ class FeatureController extends \TYPO3\CMS\Extbase\Mvc\Controller\ActionControll
*/
public function showFeatureRecordsAction()
{
$features=[];
$ids = explode(',',$this->settings['feature']);
foreach($ids as $key => $id){
$features[$id] = $this->featureRepository->findByUid($id);
$features = [];
$ids = explode(',', $this->settings['feature']);
foreach ($ids as $id) {
$features[$id] = $this->featureRepository->findByUid((int)$id);
}
$this->view->assign('features', $features);
}
......@@ -74,13 +75,12 @@ class FeatureController extends \TYPO3\CMS\Extbase\Mvc\Controller\ActionControll
*/
public function showFeatureAreaRecordsAction()
{
$featureAreas=[];
$ids = explode(',',$this->settings['featureArea']);
foreach($ids as $key => $id){
$featureAreas[$id] = $this->featureAreaRepository->findByUid($id);
$featureAreas = [];
$ids = explode(',', $this->settings['featureArea']);
foreach ($ids as $id) {
$featureAreas[$id] = $this->featureAreaRepository->findByUid((int)$id);
}
$this->view->assign('featureAreas', $featureAreas);
}
}
......@@ -29,7 +29,7 @@ $EM_CONF[$_EXTKEY] = array(
'clearCacheOnLoad' => 0,
'lockType' => '',
'author_company' => '',
'version' => '2.1.1',
'version' => '2.1.2',
'constraints' => array(
'depends' => array(
'typo3' => '8.5.0-8.99.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