Index: branches/5.2.x/core/kernel/utility/formatters/formatter.php =================================================================== diff -u -N -r13840 -r14095 --- branches/5.2.x/core/kernel/utility/formatters/formatter.php (.../formatter.php) (revision 13840) +++ branches/5.2.x/core/kernel/utility/formatters/formatter.php (.../formatter.php) (revision 14095) @@ -1,6 +1,6 @@ _categoryHelper =& $this->Application->recallObject('CategoryHelper'); } @@ -68,7 +73,7 @@ if ($field_type == 'string') { if (!$this->Application->isAdmin && isset($options['allow_html']) && $options['allow_html']) { // this allows to revert htmlspecialchars call for each field submitted on front-end - $value = unhtmlentities($value); + $value = kUtil::unhtmlentities($value); } return $value; } @@ -105,7 +110,8 @@ foreach ($src as $id => $row) { $tmp_row = array(); foreach ($row as $fld => $value) { - $tmp_row[$fld] = $this->TypeCast($value, $object->Fields[$fld]); + $field_options = $object->GetFieldOptions($fld); + $tmp_row[$fld] = $this->TypeCast($value, $field_options); } $dst[$id] = $tmp_row; }