How to reproduce.
- Load the “update.html” page (comment or reply).
- click on the one-time-bcc field
- start entering the first few letters of a user you know it exists
- the autocompletion box appears
- press the arrow down to select the name (moving up/down on the list, if it contains more than one entry, does not make any difference)
- press TAB to accept the entry and move the focus to the next control (which happens to be the “All recipients” checkbox below the one-time-bcc text box)
You’ll notice that the “Scrips and Recipients” area is refreshed twice, and the second time all checkboxes are cleared.
It seems that for some reason ProcessTransactionSquelching (lib/RT/Interface/Web.pm) sometimes squelches all addresses.
From 4.4.0 to 4.4.1 that function changed as a result of the merge of the “4.4/exclude-one-time-cc-in-txn-squelch” branch into 4.4-trunk, but even if I comment out that extra chunk the issue remains. And this is consistent with the fact that the issue emerged when I upgraded from 4.4.1 to 4.4.2.
I noticed that in share/html/Helpers/PreviewScrips the “All recipients” checkbox (name=“TxnSendMailToAll”) changed form 4.4.1 to 4.4.2, but even if I revert the change I can trigger unwanted squelching of all recipients.
The “TxnRecipients” hidden tag is correctly updated (the one-time-bcc is added to the list of existing addresses) but for some reason the end result is that the existing recipients are squashed.