﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
23865	Problem with the regions validator (false positive) if there are duplicate presets (like one for inside the US and Canada and one for outside the US and Canada)	goodidea	team	"Kopiert von [ticket:23290#comment:53]:
> Is it sure that the validator will work correctly if `regions` is used in an `item` tag?
> 
> For example, I now always get the validator warning ''“Preset is invalid in this region – Preset Charging Station should not be applied in this region”.'', when I edit a charging station in Germany. And this is caused by a preset with `regions=""US,CA""` in the `item` tag (I checked this by changing the name of the preset). The preset is from Simonpoole's “beautified-JOSM-preset” (see https://github.com/simonpoole/beautified-JOSM-preset). 
> 
> Note: there is a second “Charging Station” preset for all other regions with `exclude_regions=""true"" regions=""US,CA""` in the `item` tag. This does not cause validator warnings for objects in Germany.
> 
> Here is the code of these 2 presets:
> 
> 
> {{{
>             <item name=""Charging Station"" icon=""transport_charging_station.png"" regions=""US,CA"" type=""node,closedway,multipolygon"" preset_name_label=""true"">
>                 <link wiki=""Tag:amenity=charging_station""/>
>                 <space/>
>                 <key key=""amenity"" value=""charging_station""/>
>                 <reference ref=""charging_base""/>
>                 <space/>
>                 <reference ref=""charging_sockets_cables_us_ca""/>
>                 <preset_link preset_name=""Charge point"" text=""Similar but different tags:""/>
>             </item> <!-- Charging Station US,CA -->
> 
>            <item name=""Charging Station"" icon=""transport_charging_station.png"" exclude_regions=""true"" regions=""US,CA"" type=""node,closedway,multipolygon"" preset_name_label=""true"">  
>                 <link wiki=""Tag:amenity=charging_station""/>
>                 <space/>
>                 <key key=""amenity"" value=""charging_station""/>      
>                 <reference ref=""charging_base""/>
>                 <space/>
>                 <reference ref=""charging_sockets_cables""/>
>                 <preset_link preset_name=""Charge point"" text=""Similar but different tags:""/>   
>             </item> <!-- Charging Station -->
> }}}
> "	enhancement	new	normal		Core validator			vespucci regions tagging preset	SimonPoole stoecker
