GravityKit / GravityView

The best and easiest way to display Gravity Forms entries on your website.
https://www.gravitykit.com/products/gravityview/
245 stars 63 forks source link

DataTables View won't load data when embedded in a Single Entry List View #2090

Closed crbdev closed 1 month ago

crbdev commented 3 months ago

When adding a DataTables View (using the "GravityView - View" field in the view editor) to a Single Entry page using the List layout, the DataTables View does not load any data.

Example: https://flamboyant-swiftlet-eb7a39.try.gravitykit.com/view/business-database/entry/1214/

WordPress 6.6.1 PHP version is: 7.4.33

mrcasual commented 3 months ago

@omarkasem, please work on this.

omarkasem commented 1 month ago

@crbdev @mrcasual I tested that multiple times and it's working fine for me php 7.4 and 8.1 gv 2.28.0 datatables 3.3.7 wp 6.6.1 and 6.6.2

crbdev commented 1 month ago

I've tested it on try. and my local install, and it doesn't work. @Mwalek could you please try to reproduce this? Let me know if the steps aren't clear.

CleanShot 2024-09-20 at 11 10 30@2x

Mwalek commented 1 month ago

@crbdev I tested with PHP 7.4 and 8.3, but couldn't reproduce.

Perhaps you could have a look at my test and make adjustments or provide further clarification:

https://basecamp.try.gravitykit.com/view/issue-2090-view/

crbdev commented 1 month ago

@Mwalek Can you provide me with the login?

Mwalek commented 1 month ago

@crbdev here you go, u: admin1 p: test

crbdev commented 1 month ago

@Mwalek @omarkasem Thanks! Okay, so the issue only occurs when adding the field to the "Other Fields" section of the View editor

CleanShot 2024-09-23 at 12 31 41@2x

CleanShot 2024-09-23 at 12 31 10@2x

omarkasem commented 1 month ago

Thanks @crbdev for clarifying that. It's fixed now with this PR https://github.com/GravityKit/GravityView/pull/2149