﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
8170	mapcss parent_tag(key_name) only selects value from 1 parent	Polyglot	team	"On the wiki I find the following:

parent_tag(key_name)
    get the value of the key key_name from the object's parent(s)

It suggests that more than 1 value can be shown. (The use case is a bus stop which is a member of several routes)

I think it's coded here:

http://josm.openstreetmap.de/browser/josm/trunk/src/org/openstreetmap/josm/gui/mappaint/mapcss/Expression.java


{{{
182            public String parent_tag(String key) {
183	                if (env.parent == null) {
184	                    // we don't have a matched parent, so just search all referrers
185	                    for (OsmPrimitive parent : env.osm.getReferrers()) {
186	                        String value = parent.get(key);
187	                        if (value != null)
188	                            return value;
189	                    }
190	                    return null;
191	                }
192	                return env.parent.get(key);
193	            }

}}}

I'm not a java coder so I don't dare to touch it myself, but couldn't it work with a loop and return a list of values in a string separated by "";""? What is a matched parent? One defined by the selector expression?"	enhancement	closed	normal	15.09	Core mappaint		fixed	mapcss parent_tag	Klumbumbus
