Voyager: Relationship Issue : displaying no results

Created on 12 Dec 2017  路  7Comments  路  Source: the-control-group/voyager

  • Laravel Version: latest
  • Voyager Version: latest
  • PHP Version: 7.1
  • Database Driver & Version: Apache/2.4.29 (Win32) OpenSSL/1.0.2l PHP/7.1.11

Description:

I created two tables naming items and product_types ... I added two inputs in the product_type and created a relationship for items with product_types..
when I try to add an item I am able to select the product_type with a drop down menu and I'm able to select..but after saving the column product_type is displaying no results
My item bread property:
item bread
When adding an item:
item edit
after adding when I view the item:
item ew view

bug help wanted

Most helpful comment

I had the same problem, make sure that you activated the checkboxes (Visibility) in field "product_type".

All 7 comments

Can you try to use product_type_id instead?

Please provide the actual version number for laravel and Voyager. Saying "latest" is not helpful if this issue were to remain open for weeks/months

I had the same problem, make sure that you activated the checkboxes (Visibility) in field "product_type".

Solution provided by @Overfinch works for me. Also I had to change the column's "Input Type" to "Number".

v1.0.14

This also seems to be fixed in https://github.com/the-control-group/voyager/pull/2837 (1.x-dev)
The default selected type is now text and not checkbox.
If it isn't fixed (in future 1.1) please let us know or open a new issue!

@Overfinch thankyou it works to me also.

This issue has been automatically locked since there has not been any recent activity after it was closed. If you have further questions please ask in our Slack group.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

vaggelis2018 picture vaggelis2018  路  3Comments

popica80 picture popica80  路  3Comments

zzpwestlife picture zzpwestlife  路  3Comments

wp-src picture wp-src  路  3Comments

craigb88 picture craigb88  路  3Comments