mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Fixed FormField::createTag() generation for empty <select> tag, which meant that page version history was displayed in single-language mode
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@63594 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
7fbeb7d6c5
commit
5fb39c998e
@ -450,7 +450,7 @@ HTML;
|
|||||||
if(!empty($v) || $v === '0') $preparedAttributes .= " $k=\"" . Convert::raw2att($v) . "\"";
|
if(!empty($v) || $v === '0') $preparedAttributes .= " $k=\"" . Convert::raw2att($v) . "\"";
|
||||||
}
|
}
|
||||||
|
|
||||||
if($content) return "<$tag$preparedAttributes>$content</$tag>";
|
if($content || $tag != 'input') return "<$tag$preparedAttributes>$content</$tag>";
|
||||||
else return "<$tag$preparedAttributes />";
|
else return "<$tag$preparedAttributes />";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user