Survey field ratings are incorrect for Views embedded in other Views
When a View in embedded in another View, star ratings show up as the oppposite of what they should be (i.e., a 5-star rating shows up as a 1-star rating). It appears to work with DataTables. @Mwalek can you see if you can reproduce this?
Loom: https://www.loom.com/share/373dded5c2e247dcbcc8366ddd68168b
Steps to reproduce:
- Create a Table View with any data
- Create a new form that includes a survey field (type: rating)
- Create another table View to display ratings
- Embed the rating form and View into the first View's Single Entry layout
- Submit ratings and refresh the page – confirm ratings are incorrect
- Change the rating View layout from Table to DataTables and confirm that ratings are now correct
- Check with other View types
I can reproduce the issue:
https://www.loom.com/share/e1a3194eab864a50b6bcb36dd09a5951?sid=7097cda3-ac4a-4263-88b7-5e994939a0ea
Changing the rating view type to DataTables makes the ratings show up correctly.
@Mwalek, please share the GravityMigrate dump or a link to the try site.
@omarkasem, please see if this is a RR or GV issue, and address it.
@mrcasual It's fixed now with this PR https://github.com/GravityKit/GravityView/pull/2157