public function text($fieldName, $attributes = array())
{
if ($this->freezed) {
list($model, $field) = explode('.', $fieldName);
if (isset($attributes)) {
$attributes = $attributes + array('type' => 'hidden');
} else {
$attributes = array('type' => 'hidden');
}
if (isset($attributes["value"])) {
$value = $attributes["value"];
} else {
$value = $this->request->data[$model][$field];
}
return parent::text($fieldName, $attributes) . $value;
} else {
return parent::text($fieldName, $attributes);
}
}