Commit 455f40db authored by Carsten  Rose's avatar Carsten Rose
Browse files

#4299 / HTML Element 'Select': Placeholder

AbstractBuildForm.php: code cleanup
parent 06b27ab4
......@@ -2240,7 +2240,7 @@ abstract class AbstractBuildForm {
for ($ii = 0; $ii < $total; $ii++) {
$option .= '<option ';
$option .= Support::doAttribute('value', $itemKey[$ii]);
$option .= Support::doAttribute('value', $itemKey[$ii], false);
if ($formElement[FE_PLACEHOLDER] != '') {
if (($ii == 0 && isset($formElement[FE_EMPTY_ITEM_AT_START])) ||
......@@ -2267,6 +2267,7 @@ abstract class AbstractBuildForm {
$json = $this->getFormElementForJson($htmlFormElementName, $jsonValues, $formElement);
$html = '<select ' . $attribute . '>' . $option . '</select>';
$formElement = HelperFormElement::prepareExtraButton($formElement, false);
$html = $html . $this->getHelpBlock() . $formElement[FE_TMP_EXTRA_BUTTON_HTML];
......
Supports Markdown
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