Commit 9aafd7d
committed
Issue #64: Only display the current pin on the picture page
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.1 parent bda5b43 commit 9aafd7d
1 file changed
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
186 | 186 | | |
187 | 187 | | |
188 | 188 | | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
189 | 192 | | |
190 | 193 | | |
191 | 194 | | |
| |||
0 commit comments