Closed Bug 1738669 Opened 3 years ago Closed 3 years ago

Unable to create a new "Saved Search Folder" using "Save View as a Folder..."

Categories

(SeaMonkey :: MailNews: General, defect)

defect

Tracking

(seamonkey2.53+ fixed)

RESOLVED FIXED
seamonkey 2.93
Tracking Status
seamonkey2.53 + fixed

People

(Reporter: njsg, Assigned: njsg)

References

Details

(Whiteboard: SM2.53.10)

Attachments

(3 files, 2 obsolete files)

In Mail&News, the "Save View as a Folder" option in the "View" drop-down (top left, below the button bar) does not work, and leaves the following error in the error console:

Error: ReferenceError: aSearchTems is not defined
Source File: chrome://messenger/content/folderPane.js

Changing that to aSearchTerms makes this option work.

Attached patch 1738669-aSearchTerm-v1.patch (obsolete) — Splinter Review

(This also affects File->New->"Saved Search...")

Blocks: 1737845
Whiteboard: SM2.53.10
Version: SeaMonkey 2.53 Branch → Trunk

Reformatted hg patch

lgtm r/a+

Attachment #9248645 - Attachment is obsolete: true
Attachment #9248647 - Flags: review+
Attachment #9248647 - Flags: approval-comm-release+
Attachment #9248647 - Flags: approval-comm-esr60+
Attached patch 1738669-termsArray-25310.patch (obsolete) — Splinter Review

Even with the first patch the view is not updated correctly. View->Messages->Custom Views-><pick one from the list> results in a blank list because termsArray.length is undefined.

This patch is only needed for 2.53 and 2.57 because Bug 1681009 fixed it for comm-central.

[Approval Request Comment]
Regression caused by (bug #): Bug 857230
User impact if declined: virtual folder views do not work
Testing completed (on m-c, etc.): 2.53.11b1 pre
Risk to taking this patch (and alternatives if risky): broken already.
String changes made by this patch: none

Attachment #9248789 - Flags: review?(iannbugzilla)
Attachment #9248789 - Flags: approval-comm-release?
Attachment #9248789 - Flags: approval-comm-esr60?

Updated patch. Removed unneeded weak parameter because Bug 1313150 is in 2.53.

Even with the first patch the view is not updated correctly. View->Messages->Custom Views-><pick one from the list> results in a blank list because termsArray.length is undefined.

This patch is only needed for 2.53 and 2.57 because Bug 1681009 fixed it for comm-central.

[Approval Request Comment]
Regression caused by (bug #): Bug 857230
User impact if declined: virtual folder views do not work
Testing completed (on m-c, etc.): 2.53.11b1 pre
Risk to taking this patch (and alternatives if risky): broken already.
String changes made by this patch: none

Attachment #9248789 - Attachment is obsolete: true
Attachment #9248789 - Flags: review?(iannbugzilla)
Attachment #9248789 - Flags: approval-comm-release?
Attachment #9248789 - Flags: approval-comm-esr60?
Attachment #9249595 - Flags: review?(iannbugzilla)
Attachment #9249595 - Flags: approval-comm-release?
Attachment #9249595 - Flags: approval-comm-esr60?

Comment on attachment 9249595 [details] [diff] [review]
1738669-termsArray-v1_1-25310.patch

[Triage Comment]
Instead of virtualFolderSearchTerm you could just use searchTerm then you won't need to change the appendElement line.

r/a=me either way

Attachment #9249595 - Flags: review?(iannbugzilla)
Attachment #9249595 - Flags: review+
Attachment #9249595 - Flags: approval-comm-release?
Attachment #9249595 - Flags: approval-comm-release+
Attachment #9249595 - Flags: approval-comm-esr60?
Attachment #9249595 - Flags: approval-comm-esr60+

As discussed via irc. Part 2 is technically not needed for comm-central but rename searchTerm to virtualFolderSearchTerm for consistency.

r=me because trivial.

Attachment #9250046 - Flags: review+
Attachment #9250046 - Attachment description: 1738669-termsArray-v1_1-25310.patch → 1738669-termsArray-cc.patch
Attachment #9250046 - Attachment filename: 1738669-termsArray-v1_1-25310.patch → 1738669-termsArray-cc.patch

Pushed by frgrahl@gmx.net:
https://hg.mozilla.org/comm-central/rev/e528f8fa5e77
Correct typo in folderPane.js. r=frg
https://hg.mozilla.org/comm-central/rev/abc7fdc37ebd
Rename searchTerm to virtualFolderSearchTerm for consistency. r=me

Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: