⚠ 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

2 Related tables with 1 column with the same name (not the key)



fabaunet
  • profile picture
  • Member

Posted 29 November 2016 - 08:59 AM

Hello,

 

I try to use the CRUD but I have a problem:
 
I took the last version.
 
I took the example provided (Table "customers" and Table "employees")
 
And the function "customers_management"
ALL is OK ! :-)
 
But after :
 
I have added a "phone" field on the "employees" table
And when I want to make a filter on "phone" or "Search all", I have a 500 error and the filter does not happen.

 

Which means that 2 linked tables can not have fields with the same name ?

 

Thank you

 

Fabrice

(sorry for my english ... i'm french)

 


semsik
  • profile picture
  • Member

Posted 03 December 2016 - 14:08 PM

if the field name is the problem change the field name

then change the way the field name is displayed with

display_as function from the API

http://www.grocerycrud.com/documentation/options_functions/display_as

 

or am i nmissing something