Skip to content

Commit

Permalink
fixed issue with caption in genericcontrol
Browse files Browse the repository at this point in the history
  • Loading branch information
illiphilli committed Jun 10, 2011
1 parent 5dd2eb2 commit 239ae00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion subsystems/forms/controls/genericcontrol.php
Expand Up @@ -117,7 +117,7 @@ function controlToHTML($name, $label) {

if (!empty($this->readonly)) $html .= ' readonly="readonly"';

$caption = isset($this->caption) ? $this->caption : str_replace(array(":","*"), "", ucwords($label));
$caption = $this->caption;
if (!empty($this->required)) $html .= ' required="'.rawurlencode($this->default).'" caption="'.$caption.'" ';
if (!empty($this->onclick)) $html .= ' onclick="'.$this->onclick.'" ';
if (!empty($this->onchange)) $html .= ' onchange="'.$this->onchange.'" ';
Expand Down

0 comments on commit 239ae00

Please sign in to comment.