Closed Bug 283567 Opened 20 years ago Closed 20 years ago

Toggling a comment's privacy does nothing

Categories

(Bugzilla :: Creating/Changing Bugs, defect)

2.19.2
defect
Not set
critical

Tracking

()

RESOLVED FIXED
Bugzilla 2.20

People

(Reporter: mkanat, Assigned: LpSolit)

Details

Attachments

(1 file, 1 obsolete file)

On today's tip, if I uncheck the "private" box on a comment, it doesn't become
un-private. If I check the "private" box, it doesn't become private.

I can file a new private comment, or make a new private attachment, but once
something is private I can't make it "un-private." Once something is
"un-private", I can't make it private.
This is because the hidden when-# field is empty. It should contain the date of
the comment. May be related to $dbh->sql_date_format('longdescs.bug_when',
'%Y%m%d%H%i%s') in Bug.pm, line 541.

process_bug.cgi is clean, so the problem is to get the date of the comment from
the DB.

I haven't time right now, so if someone wants to take it, please do. Else I do
it with "pleasure" when I come back.
Target Milestone: --- → Bugzilla 2.20
That's exactly why longdescs needs a good key
Attached patch adding AS bug_when, v1 (obsolete) — Splinter Review
There is a missing "AS bug_when" in GetComments(). This is a regression from
bug 279700 caused by... mkanat! :)
Assignee: create-and-change → LpSolit
Status: NEW → ASSIGNED
Attachment #175773 - Flags: review?(mkanat)
Comment on attachment 175773 [details] [diff] [review]
adding AS bug_when, v1

Yeah. This is right. But don't change all the code -- just fix the line that
needs fixing. Just resubmit a new patch with only the one line changed.

The funny part is that it seemed to be working when I ran my tests on it... ah,
well. :-)
Attachment #175773 - Flags: review?(mkanat) → review+
Do you prefer this version?
Attachment #175773 - Attachment is obsolete: true
Attachment #175836 - Flags: review?(mkanat)
Comment on attachment 175836 [details] [diff] [review]
adding AS bug_when, v2

Very much. -)
Attachment #175836 - Flags: review?(mkanat) → review+
Flags: approval?
Flags: approval? → approval+
Checking in Bugzilla/Bug.pm;
/cvsroot/mozilla/webtools/bugzilla/Bugzilla/Bug.pm,v  <--  Bug.pm
new revision: 1.60; previous revision: 1.59
done
Status: ASSIGNED → RESOLVED
Closed: 20 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: