Skip to content

Commit

Permalink
BUGFIX Allowing $extraClass on CheckboxField FieldHolder (fixes #5939,…
Browse files Browse the repository at this point in the history
… thanks mobiusnz) (from r110808)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@112846 467b73ca-7a2a-4603-9d3b-597d59a354a9
  • Loading branch information
Sam Minnee committed Oct 19, 2010
1 parent 995f1f4 commit 1b95077
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion forms/CheckboxField.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,9 @@ function FieldHolder() {
EXTR_SKIP);
$messageBlock = isset($Message) ? "<span class=\"message $MessageType\">$Message</span>" : '';
$Type = $this->XML_val('Type');
$extraClass = $this->XML_val('extraClass');
return <<<HTML
<p id="$Name" class="field $Type">
<p id="$Name" class="field $Type $extraClass">
$Field
<label class="right" for="{$this->id()}">$Title</label>
$messageBlock
Expand Down

0 comments on commit 1b95077

Please sign in to comment.