Permalink
Browse files

Update Formbuilder/Formbuilder.php

I've noticed it can be saved as the value, therefore now looks for "true" || "checked" as options
  • Loading branch information...
1 parent a0d4aa3 commit 66735ae7fc62f05a3c532b99ce9c9263e97ee2d7 @noinput noinput committed Dec 5, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 Formbuilder/Formbuilder.php
View
2 Formbuilder/Formbuilder.php
@@ -409,7 +409,7 @@ protected function loadSelectBox($field){
}
$field['values'] = (array)$field['values'];
if(isset($field['values']) && is_array($field['values'])){
- $multiple = $field['multiple'] == "true" ? ' multiple="multiple"' : '';
+ $multiple = $field['multiple'] == "true" || $field['multiple'] == "checked" ? ' multiple="multiple"' : '';
$html .= sprintf('<select name="%s" id="%s"%s>' . "\n", $this->elemId($field['title']), $this->elemId($field['title']), $multiple);
if($field['required']){ $html .= '<option value="">Selection Required</label>'; }

0 comments on commit 66735ae

Please sign in to comment.