Bug - get_field_input doesn't get proper field type
- Single Page
Posted 05 December 2011 - 20:36 PM
protected function get_field_input($field_info, $value = null)
{
$real_type = $field_info->crud_type;
Should be changed to:
protected function get_field_input($field_info, $value = null)
{
$real_type = $field_info->type;
If there's a more graceful solution, please note accordingly.
Posted 06 December 2011 - 22:01 PM
Fix:
protected function get_field_input($field_info, $value = null)
{
$real_type = $field_info->crud_type;
Should be changed to:
protected function get_field_input($field_info, $value = null)
{
$real_type = $field_info->type;
If there's a more graceful solution, please note accordingly.
[/quote]
No this is not a bug. It is absolutely right. It is a crud type and not just a type. Why do you think this is a bug? What was your problem?
Posted 06 December 2011 - 22:09 PM
No this is not a bug. It is absolutely right. It is a crud type and not just a type. Why do you think this is a bug? What was your problem?
[/quote]
Yeah, you are right. I think I was trying to fix the timestamp bug by filtering on type - obviously not the right way to do this.
Posted 06 December 2011 - 22:19 PM
Yeah, you are right. I think I was trying to fix the timestamp bug by filtering on type - obviously not the right way to do this.
[/quote]
Did you read my answer at: /topic/36-bug-timestamp-is-not-a-supported-field-type/page__view__findpost__p__93 ?