Opened 15 years ago

Last modified 14 years ago

#5903 closed defect

Presets: keys with required="true" are not any longer really required — at Version 6

Reported by: Fabi2 Owned by: team
Priority: normal Milestone:
Component: Core Version: latest
Keywords: Cc:

Description (last modified by simon04)

Since the official "latest" of today (3849), e.g. checkboxes with required="true"
, are disabled by default, which means, that their key will not be added, if nothing other is selected. This is a really fresh bug, as it works until yesterday. This maybe a side effect of the escaping fix.

Example preset is attached.

Change History (7)

by Fabi2, 15 years ago

Attachment: preset-bug.xml added

comment:1 by Fabi2, 15 years ago

This bug also affects bridge in the default presets.

            <combo key="bridge" text="Bridge" values="yes,viaduct,swing,aqueduct" required="true" default="yes" />

comment:2 by bastiK, 15 years ago

Did it ever work the way you expect? If yes, please check again and report the version.

(http://josm.openstreetmap.de/download/ has older versions, "required" was added in [3518].)

comment:3 by Fabi2, 15 years ago

I tried old versions also, which still did not work anymore after this bug was intruduced with the fix of the "\,"-Escaping for <combo>.

The are also the versions before the change was made affected, so this bug must be in the template which is dowloaded and used to parse the XML in the presets, as it worked as expected, before the ecaping fix was made.

comment:4 by bastiK, 15 years ago

Please state the version where it works as expected. I don't know what you mean by "downloaded template".

in reply to:  4 comment:5 by Fabi2, 15 years ago

Replying to bastiK:

Please state the version where it works as expected. I don't know what you mean by "downloaded template".

This one: http://josm.openstreetmap.de/tagging-preset-1.0, which is also used the standard presets.

As already said, I already tried to downgrade, but this works, when the file http://josm.openstreetmap.de/tagging-preset-1.0 is fetched over the network to parse the XML.

comment:6 by simon04, 14 years ago

Description: modified (diff)

As of r5068, required="true" is used only for matching primitives with presets, i.e, to determine whether the tags of the primitive correspond to the tags specified in the preset.

Note: See TracTickets for help on using tickets.