Closed Bug 68505 Opened 25 years ago Closed 25 years ago

Can't delete mail filter!

Categories

(MailNews Core :: Filters, defect, P1)

Tracking

(Not tracked)

VERIFIED FIXED
mozilla0.9

People

(Reporter: hwaara, Assigned: gayatrib)

References

Details

(Whiteboard: [nsbeta1+])

Attachments

(2 files)

I can't delete any mail filter in the "Message Filters" dialog. I tried to hit the "Delete" button and pressing delete and backspace. So did timeless, and he couldn't remove a filter either in win2k.. This is a major loss of functionality.
JavaScript error: chrome://messenger/content/FilterListDialog.js line 180: getBundle is not defined
Keywords: nsbeta1
QA Contact: esther → laurel
Still exists in all platforms with feb13 commercial trunk build
Priority: -- → P1
This should have been fixed in today's builds, based on timeless' checkin for my fix to 61801. (It certainly works here). I'll take a look at this.
FYI -- still happens with feb14 commercial trunk.
I have a patch ready to fix this. Will check it in soon.
Status: NEW → ASSIGNED
This is odd. My changes in 61801 fixed this for me (the problem was that the confirm dialog couldn't get the prompt string). It still works fine here updated to the tip. Is there something I'm overlooking?
marking nsbeta1+ and moving to mozilla0.9. This still happens to me on 2001021505 on NT.
Whiteboard: [nsbeta1+]
Target Milestone: --- → mozilla0.9
I had introduced this bug--when I removed the string bundle for getting search properties from the FilterListDialog.js -- thinking it was not required. It was my mistake. Attaching a patch--reintroducing getting string bundle for search into FilterListDialog.js. With this, delete works.
Attached patch patchSplinter Review
gayatrib, could you take a look at my (somewhat large and tangential) patch in bug 56680 and see if the equivalent of your changes are already included there? If so, I'd like to try to talk everybody into waiting for that (it should hopefully be fairly soon), rather than me having to merge and rewrite this code.
I am not too sure that your patch handles this bug--it does not seem to introduce a stringBundle for search properties in FilterListDialog.js. I feel it would be best to get this patch in. It is just putting back code that should have been there--which I took out thinking it was not required. Adding racham for review and bienvenu for super review.
Actually, my patch uses a xul <stringbundle/> instead of using strres.js to get at the resource. It is functionally equivalent to what you are doing in your patch. Additionally, my patch gets its string from filter.properties, where the string currently is, instead of search.properties, where the string used to be. I'm not trying to be a pain in the butt, but checking this in will unecessarily complicate my patch, and it won't work with a current tree anyway because of the moved property. jag is familiar with my patch. If he thinks it is more than a few days off, we should probably take this fix (adjusting it for the correct properties file of course).
gayatrib, for what it's worth, the patch in 56680 does address this issue, though in a different way, like Mark explained in his last comment. After doing some research it turns out this bug should have been fixed with bug 61801. Should have been, but wasn't, since not all of the relevant patches were checked in. I'll attach an updated version of the patch here, extracted from Mark's patches in bug 56680. r=jag.
Tested this. It is working great. Thanks. r=gayatrib. Seth, could you please sr this? Can I check in the patch after the sr is done?
As far as I am concerned, sure. As long as someone checks it in and puts the correct blame on it :-)
Patch checked in. Marking fixed.
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
Where the correct blame would have been mao (Mark Olsen), not I...
OK using feb26 commercial builds: linux rh6.0, win98 and mac OS 9.0
Status: RESOLVED → VERIFIED
Product: MailNews → Core
Product: Core → MailNews Core
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: