⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

Bug - get_field_input doesn't get proper field type



avi123
  • profile picture
  • Member

Posted 05 December 2011 - 20:36 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.

web-johnny
  • profile picture
  • Administrator
  • 1,166 posts

Posted 06 December 2011 - 22:01 PM

[quote name='avi123' timestamp='1323117367' post='90']
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?

avi123
  • profile picture
  • Member

Posted 06 December 2011 - 22:09 PM

[quote name='web-johnny' timestamp='1323208875' post='95']
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.

web-johnny
  • profile picture
  • Administrator
  • 1,166 posts

Posted 06 December 2011 - 22:19 PM

[quote name='avi123' timestamp='1323209378' post='96']

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 ?