Opened 7 years ago

Closed 7 years ago

#4092 closed defect (fixed)

Browse node shows wrong relation

Reported by: Zartbitter Owned by: rails-dev@…
Priority: minor Milestone:
Component: website Version:
Keywords: browse node Cc:

Description

Look at http://www.openstreetmap.org/browse/node/25230425 It says the node is member of two relations. One is correct (turn restriction 1650366). One is not correct (relation 81686). Looking at relation 81686: there is a member _way_ with id 25230425.

Maybe at browse node you're joining the id without looking at the type (way/node).

Change History (2)

comment:1 Changed 7 years ago by Tom Hughes

This is an issue with composite primary keys and polymorphic relationships. I've fixed it in the composite_primary_keys plugin and opened a pull request to get it upstream:

https://github.com/drnic/composite_primary_keys/pull/76

comment:2 Changed 7 years ago by Tom Hughes

Resolution: fixed
Status: newclosed

I have monkey patched the fix into our code until we get a new upstream release, and the fix should deploy shortly.

Note: See TracTickets for help on using tickets.