﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
9517	Some issues with the MapCSS validator when reloading config file	naoliv	team	"Include this example mapcss file:

{{{
*[name = *ref][highway] {
        throwWarning: tr(""{0} and {1} are the same"", ""{0.key}"", ""{0.value}"");
}
}}}

and validate one highway where the name = ref. You correctly get the validation result (saying that both are the same).

With JOSM still open (and after running the validation), edit the mapcss file and change to something like this (only the message was changed):

{{{
*[name = *ref][highway] {
        throwWarning: tr(""please, fix {0} and {1}"", ""{0.key}"", ""{0.value}"");
}
}}}

Go to edit, preferences, data validator, click on the local mapcss file, edit and OK (just to reload the mapcss file).
Then validate it one more time.
Note how now we have both messages: one with the old text and another with the current one.


Second problem: still with this test session, do the step above to reload the mapcss one more time (without changing anything) and then validate the data again. Now we have a duplicated message saying to fix the name and the ref.
Everytime that the mapcss file is reload the tests result get duplicated."	defect	closed	normal	14.01	Core validator		fixed		
