Modify

#7574 closed defect (fixed)

NameTemplate stopped working

Reported by: anonymous Owned by: simon04
Priority: normal 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 Changed 14 months ago by jttt

  • Owner changed from team to simon04

comment:2 Changed 14 months ago by simon04

  • Resolution set to fixed
  • Status changed from new to closed

In 5163/josm:

fix #7574 - NameTemplate stopped working

comment:3 Changed 14 months ago by anonymous

  • Resolution fixed deleted
  • Status changed from closed to reopened

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 Changed 14 months ago by simon04

  • Resolution set to fixed
  • Status changed from reopened to closed

In 5169/josm:

(hopefully) fix #7574 - NameTemplate stopped working

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed .
as The resolution will be set. Next status will be 'closed'.
The resolution will be deleted. Next status will be 'reopened'.
Author


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

 
Note: See TracTickets for help on using tickets.