GravityKit / GravityView

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

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

Closed crbdev closed 2 months ago

crbdev commented 4 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 2 months 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 2 months 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 2 months 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 2 months ago

@Mwalek Can you provide me with the login?

Mwalek commented 2 months ago

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

crbdev commented 2 months 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 2 months ago

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