Modify

Opened 12 years ago

Closed 12 years ago

#7574 closed defect (fixed)

NameTemplate stopped working

Reported by: anonymous Owned by: simon04
Priority: normal Milestone:
Component: Core Version: latest
Keywords: NameTemplate Cc:

Description

I think the recent changes broke something relating name templates.

The following name template (which I load in my presets to show in relation list information about tags in relation of type destination_sign) stopped working. The latest working josm version I can find in download directory is 5148. Version 5159 and later don't work anymore (I don't know about versions in-between):

<?xml version="1.0" encoding="UTF-8"?>
<presets>

<item name="Destination sign" type="relation"

name_template="destination_sign (?{'{destination} {time}' | '{destination} {distance}' | '{destination}'}) "
name_template_filter="type=destination_sign">

</item>

</presets>

Attachments (0)

Change History (4)

comment:1 by jttt, 12 years ago

Owner: changed from team to simon04

comment:2 by simon04, 12 years ago

Resolution: fixed
Status: newclosed

In 5163/josm:

fix #7574 - NameTemplate stopped working

comment:3 by anonymous, 12 years ago

Resolution: fixed
Status: closedreopened

In v5164 something seems still wrong.

For example, having in the presets a name template containing the text I listed in the first message, if I download relation 2114126 and look at the relations list:

in JOSM v5148 it is listed as:

destination_sign (MILANO 19) (4 members) [id: 2,114,126]

in JOSM v5164 it is listed (same as I hadn't the name template preset) as:

destination_sign (2114126, 4 members) [id: 2,114,126]

comment:4 by simon04, 12 years ago

Resolution: fixed
Status: reopenedclosed

In 5169/josm:

(hopefully) fix #7574 - NameTemplate stopped working

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain simon04.
as The resolution will be set.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.