Modify

Opened 5 years ago

Closed 4 years ago

Last modified 4 years ago

#10720 closed defect (fixed)

Autocomplete changing default values in presets

Reported by: ukandystreet Owned by: team
Priority: normal Milestone: 15.04
Component: Core Version:
Keywords: template_report Cc: Klumbumbus

Description

I was building a preset file to simplify tagging of some common local retail brands when I noticed that occasionally the default value shown in JOSM would differ from the value specified in the XML file. What I suspect is happening here is that whilst populating the text field with the default value JOSM's auto-complete code is triggered causing a previously entered value to be presented to the user rather than the default intended by the preset author.

What steps will reproduce the problem?

  1. Import the attached preset file.
  2. Create a node and apply preset "JOSM Test/Acme Mini" using the default values.
  3. Create a second node and select "JOSM Test/Acme" preset.

What is the expected result?

The "JOSM Test/Acme" preset dialog should show the default value of "Acme" in the "Shop Name" field.

What happens instead?

"Acme Mini" is presented as the default value for "Shop Name".

Please provide any additional information below. Attach a screenshot if possible.

Build-Date: 2014-11-05 14:52:43
Revision: 7707
Is-Local-Build: true

Identification: JOSM/1.5 (7707 SVN en_GB) Linux Debian GNU/Linux 7.7 (wheezy)
Memory Usage: 208 MB / 455 MB (138 MB allocated, but free)
Java version: 1.7.0_65, Oracle Corporation, OpenJDK 64-Bit Server VM
Java package: openjdk-7-jre:amd64-7u65-2.5.1-5~deb7u1
Dataset consistency test: No problems found

Plugins:
- reverter (30737)
- turnrestrictions (30762)
- undelete (30762)

Last errors/warnings:
- E: Failed to locate image 'maxspeed_icon.svg'
- W: Mappaint style "standard" (Maxspeed) icon "maxspeed_icon.svg" not found.

Attachments (1)

sample_preset.xml (648 bytes) - added by ukandystreet 5 years ago.
Sample preset file

Download all attachments as: .zip

Change History (4)

Changed 5 years ago by ukandystreet

Attachment: sample_preset.xml added

Sample preset file

comment:1 Changed 5 years ago by Klumbumbus

Cc: Klumbumbus added

comment:2 Changed 4 years ago by simon04

Resolution: fixed
Status: newclosed

In 8267/josm:

fix #10720 - Auto completion changing default values in presets

comment:3 Changed 4 years ago by simon04

Milestone: 15.04

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain team.
as The resolution will be set.
The resolution will be deleted.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.