Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
services
t3o sites
typo3.org
typo3_roadmap
Commits
dd3b36f8
Commit
dd3b36f8
authored
Sep 18, 2019
by
Stefan Busemann
Browse files
[BUGFIX] Respect settings as array
parent
9a4b5c99
Changes
1
Hide whitespace changes
Inline
Side-by-side
Classes/Controller/FeatureController.php
View file @
dd3b36f8
<?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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment