Piwigo / piwigo-openstreetmap

OpenStreetMap integration for Piwigo
http://piwigo.org/ext/extension_view.php?eid=701
GNU General Public License v3.0
35 stars 35 forks source link

Issue #64: Only display the current pin on the picture page #77

Closed joubu closed 8 years ago

joubu commented 8 years ago

Previous attempt to fix #64 introduced another bug. The map on the picture page now contains info from all images of the album. On this page we expect to see info (pin/thumbnail) from the current image only.

This quick fix adds a sql limit condition to the query if the image_id param exists (I assume that it means we come from the picture page?). Note that it would be more efficient not to join in this case.

xbgmsharp commented 8 years ago

Thanks for help and committing fix