open-y-subprojects / openy_map

Map feature from Open Y DIstribution
GNU General Public License v3.0
1 stars 14 forks source link

[openy_map_lb] Amenities filters fail with content types that don't have amenities field #75

Closed froboy closed 5 months ago

froboy commented 5 months ago

To test:

SCR-20240409-jjhy

andrebonon commented 5 months ago

This bug happens when a Camp is unpublish in English but published in other languages (FR for example). I captured the same bug but I proposed a fix in a different way here: https://github.com/open-y-subprojects/openy_custom/issues/68

After the issue above gets merged, we'd need to edit the OpenyMapDataWrapper class that extends from DataWrapper, and replicate the solution with Language manager and a new condition for the query. https://github.com/open-y-subprojects/openy_map/blob/main/src/OpenyMapDataWrapper.php#L23