Edgewall Software
Modify

Opened 17 years ago

Closed 15 years ago

Last modified 8 years ago

#2099 closed defect (worksforme)

Custom ticket fields were deleted from trac.ini, but still appear in view

Reported by: myrodin@… Owned by: Christopher Lenz
Priority: normal Milestone:
Component: ticket system Version: 0.9b1
Severity: normal Keywords: custom, fields, trac.ini
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

I'm a Korean user. My English is not good, so I wanna seen this with liberal mind.

I saw TracTicketsCustomFields, and then used it. And I could add some custom field, but they are for test. so I wanna delete them.

However, no matter how delete [ticket-custom] in trac.ini file, they are remained in View Tickets and New Ticket pages.

It's a known bug? or my mistaken idea?

Attachments (2)

before.png (2.8 KB ) - added by myrodin@… 17 years ago.
The result of Configuration Before
after.png (2.8 KB ) - added by myrodin@… 17 years ago.
The result of Configuration After

Download all attachments as: .zip

Change History (15)

comment:1 by Christopher Lenz, 17 years ago

Milestone: 0.9

The data for those fields will remain in the database after you delete the configuration from trac.ini, but the fields themselves should no longer be visible.

I think you'll have to provide more information. What revision of Trac are you using? Using CGI/mod_python/fastcgi? What kind of fields have you added, how are they still visible?

by myrodin@…, 17 years ago

Attachment: before.png added

The result of Configuration Before

by myrodin@…, 17 years ago

Attachment: after.png added

The result of Configuration After

comment:2 by myrodin@…, 17 years ago

Thank you for your answer.

More information is this.
First, my revision of Trac is 'Latest Development Release - 0.9-beta1' in TracDownload, and my OS is Fedora Core. Second, I don't use fastcgi.

And see below screenshot for answer of third question.

  • Configuration Before
    [ticket-custom]
    test_one = text
    test_one.label = Just a text box
    
    test_three = checkbox
    test_three.label = Some checkbox
    
    endDate = text
    endDate.label = End of Date (YY/MM/DD)
    

http://projects.edgewall.com/trac/attachment/ticket/2099/before.png?format=raw Just good!'''

  • Configuration After
    [ticket-custom]
    test_three = text
    test_three.label = Modified Text
    
    endDate = text
    endDate.label = End of Date (YY/MM/DD)
    

http://projects.edgewall.com/trac/attachment/ticket/2099/after.png?format=raw The modified of 'test_three' is OK, but 'test_one' is remained.

comment:3 by Christopher Lenz, 17 years ago

Owner: changed from Jonas Borgström to Christopher Lenz

comment:4 by haydarkoc@…, 16 years ago

Summary: I wanna delete custom ticket fields.I wanna delete label field on media

I have backup media. it includes very important data for me. I made a mistake and relabeled the media. how can I remove the label field on the Media?

comment:5 by Emmanuel Blot, 16 years ago

Summary: I wanna delete label field on mediaI wanna delete custom ticket fields

haydarkoc: The ticket page explicitly specifies:
"Support and installation questions should be asked on the mailing list or IRC channel, not filed as tickets. Also, please check whether the issue you've encountered has been reported before."

Please, do not alter the ticket summary if the new description changes the meaning.

comment:6 by akrassowski@…, 16 years ago

I'm having this same problem. Test radio buttons are removed from trac.ini yet remain when "NewTicket" button generates new ticket form.

Tried adding back and 1) setting xx.order to 0, no effect. 2) setting xx.options to empty - cannot remove label.

Same problem with dropDown (select) field. Clearing browser (Firefox) cache didn't help.

in reply to:  6 comment:7 by Matthew Good, 16 years ago

Replying to akrassowski@alsysinc.com:

I'm having this same problem. Test radio buttons are removed from trac.ini yet remain when "NewTicket" button generates new ticket form.

You need to restart the web server for Trac to recognize that the custom fields were removed. Trac checks the timestamp of trac.ini to check for modifications, but the way it updates the config isn't removing the options from the config values stored in memory.

comment:8 by sid, 16 years ago

Summary: I wanna delete custom ticket fieldsCustom ticket fields were deleted from trac.ini, but still appear in view
Version: devel0.9b1

comment:9 by Christian Boos, 15 years ago

Keywords: custom fields tracini added
Resolution: worksforme
Status: newclosed

Custom ticket fields which are no longer defined in the trac.ini (or simply commented out) won't be displayed, but this needs a server restart if the trac.ini is modified while the server is running.

comment:10 by edenburg, 15 years ago

Please only restart the webservice and not the entire server…. Restarting the webservice (#/sbin/service apache2 restart) helped for me

comment:11 by Christian Boos, 15 years ago

(in 0.11, there's no need for a server restart anymore in this case, see #3833)

comment:12 by anonymous, 12 years ago

I had this same problem and I found that it was because trac.ini was owned by www-data. After I changed the owner to root then I was able to successfully delete the custom field that was no longer needed.

comment:13 by Ryan J Ollos, 8 years ago

Keywords: trac.ini added; tracini removed

Normalizing keywords.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Christopher Lenz.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Christopher Lenz to the specified user.

Add Comment


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