Skip to content

Commit

Permalink
Fix the format selection in the image size widget (see #315)
Browse files Browse the repository at this point in the history
  • Loading branch information
leofeyer committed Feb 21, 2019
1 parent b45ccfd commit 28dd4ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Resources/contao/widgets/ImageSize.php
Expand Up @@ -172,7 +172,7 @@ public function generate()
{
$arrOptions[] = sprintf('<option value="%s"%s>%s</option>',
\StringUtil::specialchars($arrOption['value']),
$this->isSelected($arrOption),
$this->optionSelected($arrOption['value'], $this->varValue[2]),
$arrOption['label']);
}
else
Expand All @@ -183,7 +183,7 @@ public function generate()
{
$arrOptgroups[] = sprintf('<option value="%s"%s>%s</option>',
\StringUtil::specialchars($arrOptgroup['value']),
$this->isSelected($arrOptgroup),
$this->optionSelected($arrOptgroup['value'], $this->varValue[2]),
$arrOptgroup['label']);
}

Expand Down

0 comments on commit 28dd4ed

Please sign in to comment.