This fixes the erasing of data when field not set in form but value set in database.  \t\t\t$value = key_exists($field->name, $data['com_fields']) ? $data['com_fields'][$field->name] : $field->rawvalue;  