diff --git a/subsystems/forms/controls/genericcontrol.php b/subsystems/forms/controls/genericcontrol.php index 2bc00c4027..133022ea15 100644 --- a/subsystems/forms/controls/genericcontrol.php +++ b/subsystems/forms/controls/genericcontrol.php @@ -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.'" ';