Modify

Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#8673 closed defect (fixed)

[Patch] `Url` field always is shown in the import preview page

Reported by: jun66j5 Owned by: farialima
Priority: normal Component: TicketImportPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.12

Description

In the import preview page, url field always is shown. However I have no url custom field and url field is not standard field in Trac. It is strange...


  • talm_importer/importer.py

    diff --git a/talm_importer/importer.py b/talm_importer/importer.py
    index 7b820d4..45fc968 100644
    a b class ImportModule(Component): 
    233233        from ticket import PatchedTicket 
    234234        ticket = PatchedTicket(self.env) 
    235235 
    236         for f in [ 'type', 'cc' , 'url', 'description', 'keywords', 'component' , 'severity' , 'priority' , 'version', 'milestone' ] + customfields: 
     236        for f in [ 'type', 'cc', 'description', 'keywords', 'component', 'severity', 'priority', 'version', 'milestone' ] + customfields: 
    237237            if f in ticket.values: 
    238238                computedfields[f] = {} 
    239239                computedfields[f]['value'] = ticket.values[f] 

Attachments (1)

preview.png (13.7 KB) - added by jun66j5 4 years ago.

Download all attachments as: .zip

Change History (3)

Changed 4 years ago by jun66j5

comment:1 Changed 4 years ago by farialima

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

Patch applied in [10026]. Thank you !

comment:2 Changed 4 years ago by farialima

and tests fixed in [10028]

Add Comment

Modify Ticket

Action
as 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.