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:
Sam Minnee 2008-10-03 02:59:38 +00:00
parent 7fbeb7d6c5
commit 5fb39c998e

View File

@ -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 />";
} }