Skip to content
This repository has been archived by the owner on Dec 4, 2018. It is now read-only.

Commit

Permalink
Merge pull request #225 from rabe69/patch-1
Browse files Browse the repository at this point in the history
[BUGFIX] Fix $optionValue declaration
  • Loading branch information
NamelessCoder committed Mar 19, 2015
2 parents 83bcf53 + e44d317 commit 806c862
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/Backend/ContentSelector.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,8 @@ protected function wrapSelector($selector, $name, $selectedIcon) {
protected function renderOptionGroup(array $configuration, $groupLabel, $value) {
foreach ($configuration as $form) {
/** @var Form $form */
$selected = ($optionValue === $value ? ' selected="selected"' : '');
$optionValue = $form->getOption('contentElementId');
$selected = ($optionValue === $value ? ' selected="selected"' : '');
$label = $form->getLabel();
$icon = MiscellaneousUtility::getIconForTemplate($form);
$label = (0 === strpos($label, 'LLL:') ? $GLOBALS['LANG']->sL($label) : $label);
Expand Down

0 comments on commit 806c862

Please sign in to comment.