﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
17698	don't merge single checks into a checkgroup	Klumbumbus	team	"==== What steps will reproduce the problem?
1. use this preset code

{{{
#!preset
    <chunk id=""highway_yesno"">
        <checkgroup columns=""2"">
            <check key=""bridge"" text=""Bridge"" disable_off=""true"" />
            <check key=""tunnel"" text=""Tunnel"" disable_off=""true"" />
            <check key=""embankment"" text=""Embankment"" disable_off=""true"" />
            <check key=""cutting"" text=""Cutting"" disable_off=""true"" />
        </checkgroup>
    </chunk>
    <chunk id=""highway_yesno_oneway"">
        <check key=""oneway"" text=""Oneway"" />
        <reference ref=""highway_yesno"" />
    </chunk>
    
        <item name=""Test"" icon=""presets/service/fire_hydrant.svg"" type=""node"" preset_name_label=""true"">
            <reference ref=""highway_yesno_oneway"" />
        </item> <!-- Test -->
}}}


==== What is the expected result?
[[Image(checkgroupgood.png)]]
==== What happens instead?
[[Image(checkgroupbad.png)]]
==== Please provide any additional information below. Attach a screenshot if possible.
Same problem without chunks too. In fact we currently use a workaround in our internal steps preset. I used the example with chunk as chunks are used several times which makes it easy that this error slips in somewhere without noticing when editing the preset file.

{{{
URL:https://josm.openstreetmap.de/svn/trunk
Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Last:Changed Date: 2019-05-07 22:30:33 +0200 (Tue, 07 May 2019)
Build-Date:2019-05-08 01:30:50
Revision:15060
Relative:URL: ^/trunk

Identification: JOSM/1.5 (15060 en) Windows 10 64-Bit
OS Build number: Windows 10 Pro 1803 (17134)
Memory Usage: 883 MB / 1820 MB (595 MB allocated, but free)
Java version: 1.8.0_211-b12, Oracle Corporation, Java HotSpot(TM) 64-Bit Server VM
Screen: \Display0 1680x1050
Maximum Screen Size: 1680x1050
VM arguments: [-Djava.security.manager, -Djava.security.policy=file:<java.home>\lib\security\javaws.policy, -DtrustProxy=true, -Djnlpx.home=<java.home>\bin, -Djnlpx.origFilenameArg=C:\Program Files (x86)\josm-latest.jnlp, -Djnlpx.remove=false, -Djava.util.Arrays.useLegacyMergeSort=true, -Djnlpx.heapsize=NULL,2048m, -Djnlpx.splashport=61278, -Djnlpx.jvm=<java.home>\bin\javaw.exe]
Dataset consistency test: No problems found
}}}
"	defect	closed	normal	19.05	Core		fixed	template_report preset check group	
