#2099 closed defect (worksforme)
Custom ticket fields were deleted from trac.ini, but still appear in view
Reported by: | 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)
Change History (15)
comment:1 by , 19 years ago
Milestone: | 0.9 |
---|
comment:2 by , 19 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 , 19 years ago
Owner: | changed from | to
---|
comment:4 by , 19 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 , 19 years ago
Summary: | I wanna delete label field on media → I 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.
follow-up: 7 comment:6 by , 18 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.
comment:7 by , 18 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 , 18 years ago
Summary: | I wanna delete custom ticket fields → Custom ticket fields were deleted from trac.ini, but still appear in view |
---|---|
Version: | devel → 0.9b1 |
comment:9 by , 18 years ago
Keywords: | custom fields tracini added |
---|---|
Resolution: | → worksforme |
Status: | new → closed |
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 , 17 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 , 17 years ago
(in 0.11, there's no need for a server restart anymore in this case, see #3833)
comment:12 by , 14 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.
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?