From 265a853c2aea20c36ae9840a3ea9cc0dd99b0d02 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Sun, 16 Sep 2007 01:59:33 +0000 Subject: [PATCH] elofgren: BUGFIX: Fix trac ticket: #1411 'Layout problems with search box in IE' http://open.silverstripe.com/ticket/1411 by only creating a 'label' tag if a 'Title' is set in FormField?->FieldHolder?() (merged from branches/gsoc) git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@42031 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- forms/FormField.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/forms/FormField.php b/forms/FormField.php index a2e6ab238..fac15b272 100644 --- a/forms/FormField.php +++ b/forms/FormField.php @@ -244,7 +244,7 @@ class FormField extends ViewableData { $Name = $this->XML_val('Name'); $Field = $this->XML_val('Field'); - $titleBlock = ""; + $titleBlock = (!empty($Title)) ? "" : ""; $messageBlock = (!empty($Message)) ? "$Message" : ""; $rightTitleBlock = (!empty($rightTitle)) ? "" : "";