⚠ 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

change_field_type on a related field



stavgian
  • profile picture
  • Member

Posted 02 June 2012 - 17:25 PM

I don't know if it's a bug but it will be helpfull.

My code:

$crud = new grocery_CRUD();
$crud->set_relation('gallery_id', 'pages', 'title');
$crud->change_field_type('gallery_id', 'readonly');



The output with this code will be the readonly gallery_id instead of pages.title.

fieldju
  • profile picture
  • Member

Posted 04 June 2012 - 08:02 AM

I covered this, as well as included a work around here
/topic/558-set-relation-when-used-with-change-field-type-readonly-displays-id-rather-than-related-value/