Closed Bug 328089 Opened 19 years ago Closed 19 years ago

Additional Comments field columns are constant at 80 cols

Categories

(Bugzilla :: User Interface, defect)

2.19.3
defect
Not set
trivial

Tracking

()

RESOLVED FIXED
Bugzilla 2.20

People

(Reporter: rudolf.ramler, Assigned: rudolf.ramler)

Details

Attachments

(2 files, 3 obsolete files)

User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; InfoPath.1) Build Identifier: In bug# 11901 the line-wrapping policy has been changed. And the COMMENT_COLS are now set via a constant in Constants.pm - but this constant does not affect the with of the field "Additional Comments". The template still contains the line <textarea name="comment" id="comment" rows="10" cols="80"> as noted by others in bug# 11901 too. Reproducible: Always
Attached patch Changes to edit.html.tmpl (obsolete) (deleted) — Splinter Review
Attachment #212626 - Flags: review?(mkanat)
Attached patch Changes to show_bug.cgi (obsolete) (deleted) — Splinter Review
Attachment #212627 - Flags: review?(mkanat)
Attachment #212626 - Attachment description: Changes to edit.html.tmpl & show_bug.cgi → Changes to edit.html.tmpl
Attachment #212627 - Attachment description: Changes to edit.html.tmpl & show_bug.cgi → Changes to show_bug.cgi
Okay, I suppose this is a reasonable (if trivial) sort of enhancement. :-)
Assignee: ui → rudolf.ramler
Status: UNCONFIRMED → NEW
Ever confirmed: true
Target Milestone: --- → Bugzilla 2.24
Version: unspecified → 2.19.3
Comment on attachment 212627 [details] [diff] [review] Changes to show_bug.cgi Constants are available to the templates, you don't have to pass it in via $vars. Just use it directly. Also, next patch, post the changes to both files as one "cvs diff -u" patch.
Attachment #212627 - Flags: review?(mkanat) → review-
Attachment #212626 - Flags: review?(mkanat)
Comment on attachment 212626 [details] [diff] [review] Changes to edit.html.tmpl You'll also need to get enter_bug and the "change several bugs at once" form, at the least. (Unless there's even another place that I'm forgetting.)
Attachment #212626 - Flags: review-
(In reply to comment #5) > (From update of attachment 212626 [details] [diff] [review] [edit]) > You'll also need to get enter_bug and the "change several bugs at once" form, > at the least. (Unless there's even another place that I'm forgetting.) Okay, there are several templates that need to be changed. enter_bug is not affected since constants don't have to be passed from the cgi to the template. Here are the templates that contain a textarea used for comments, all with a fixed width of 80 cols: ==> template\en\default\bug\edit.html.tmpl (544): <textarea name="comment" id="comment" rows="10" cols="80" ==> template\en\default\bug\create\create.html.tmpl (302): <textarea name="comment" rows="10" cols="80"> ==> template\en\default\list\edit-multiple.html.tmpl (188): <textarea id="comment" name="comment" rows="5" cols="80"></textarea><br> ==> template\en\default\attachment\create.html.tmpl (170): <textarea wrap="soft" id="commment" name="comment" rows="6" cols="80"></textarea> ==> template\en\default\pages\linkify.html.tmpl (33): <textarea cols="80" rows="20" name="text"></textarea> ==> template\en\default\bug\create\create-guided.html.tmpl (336): <textarea rows="6" cols="80" name="comment"></textarea> (384): <textarea rows="4" cols="80" name="reproduce_steps"> (401): <textarea rows="4" cols="80" name="actual_results"></textarea> (413): <textarea rows="4" cols="80" name="expected_results"></textarea> (425): <textarea rows="8" cols="80" name="additional_info"></textarea> Furthermore, I'm unsure about the following. What's the purpose of this textarea? It isn't displayed anyway: ==> template\en\default\attachment\edit.html.tmpl (249): <textarea id="editFrame" name="comment" style="height: 400px; width: 100%; display: none;" cols="80" wrap="soft"></textarea>
Attached patch Patch ver2 for templates (obsolete) (deleted) — Splinter Review
The patch affects the first five templates listed in the previous comment: template/en/default/bug/edit.html.tmpl template/en/default/bug/create/create.html.tmpl template/en/default/list/edit-multiple.html.tmpl template/en/default/pages/linkify.html.tmpl template/en/default/bug/create/create-guided.html.tmpl
Attachment #212626 - Attachment is obsolete: true
Attachment #212627 - Attachment is obsolete: true
Attachment #212749 - Flags: review?(mkanat)
(In reply to comment #6) > Furthermore, I'm unsure about the following. What's the purpose of this > textarea? It isn't displayed anyway: > [snip] It is displayed, but only if you have an HTML or text/plain attachment. Anyhow, it doesn't need to be modified.
Status: NEW → ASSIGNED
Rudolf: I probably won't have time to review this again. Check out the Reviewer List and pick an appropriate reviewer for a template-only patch: http://www.bugzilla.org/docs/reviewer-list.html
Attachment #212749 - Flags: review?(mkanat) → review?(myk)
This patch now includes all six placed that needed a change. template/en/default/bug/edit.html.tmpl template/en/default/bug/create/create.html.tmpl template/en/default/list/edit-multiple.html.tmpl template/en/default/attachment/create.html.tmpl template/en/default/pages/linkify.html.tmpl template/en/default/bug/create/create-guided.html.tmpl
Attachment #212749 - Attachment is obsolete: true
Attachment #212871 - Flags: review?
Attachment #212749 - Flags: review?(myk)
Attachment #212871 - Flags: review? → review?(myk)
Attachment #212871 - Flags: review?(myk) → review+
Teoretically bug 11901 got into 2.20; however due to template changes we may want to approve this only for 2.22 and tip, or maybe tip-only.
Flags: approval?
Flags: approval2.22?
Flags: approval2.20?
Target Milestone: Bugzilla 2.24 → Bugzilla 2.20
I would love to see this in 2.22.. Thanks, Rudolf, for the patch.
Actually we still need the tip version. This patch works perfectly for branches, but on tip it is bitrotten by the check-in of bug 291459. Rudolf: can you upload the tip version as well?
Flags: approval?
Flags: approval2.22?
Flags: approval2.20?
Attachment #212871 - Attachment description: Patch ver3 for templates → Patch ver3 for templates (for branches, obsolete for tip)
Attachment #212871 - Attachment description: Patch ver3 for templates (for branches, obsolete for tip) → Patch ver3 for templates (for branches, bitrotten for tip)
Attached patch Patch ver4 for templates (tip) (deleted) — Splinter Review
So this patch should work for the tip.
Attachment #213693 - Flags: review?(vladd)
Attachment #213693 - Flags: review?(vladd) → review+
Cool! Requesting approval (david/myk: see comment 11)
Flags: approval?
Flags: approval2.22?
Flags: approval2.20?
okay, problably still okay for the branches since we have separate patches.
Flags: approval?
Flags: approval2.22?
Flags: approval2.22+
Flags: approval2.20?
Flags: approval2.20+
Flags: approval+
Checking in template/en/default/attachment/create.html.tmpl; /cvsroot/mozilla/webtools/bugzilla/template/en/default/attachment/create.html.tmpl,v <-- create.html.tmpl new revision: 1.25; previous revision: 1.24 done Checking in template/en/default/bug/edit.html.tmpl; /cvsroot/mozilla/webtools/bugzilla/template/en/default/bug/edit.html.tmpl,v <-- edit.html.tmpl new revision: 1.72; previous revision: 1.71 done Checking in template/en/default/bug/create/create-guided.html.tmpl; /cvsroot/mozilla/webtools/bugzilla/template/en/default/bug/create/create-guided.html.tmpl,v <-- create-guided.html.tmpl new revision: 1.28; previous revision: 1.27 done Checking in template/en/default/bug/create/create.html.tmpl; /cvsroot/mozilla/webtools/bugzilla/template/en/default/bug/create/create.html.tmpl,v <-- create.html.tmpl new revision: 1.56; previous revision: 1.55 done Checking in template/en/default/global/user-error.html.tmpl; /cvsroot/mozilla/webtools/bugzilla/template/en/default/global/user-error.html.tmpl,v <-- user-error.html.tmpl new revision: 1.152; previous revision: 1.151 done Checking in template/en/default/list/edit-multiple.html.tmpl; /cvsroot/mozilla/webtools/bugzilla/template/en/default/list/edit-multiple.html.tmpl,v <-- edit-multiple.html.tmpl new revision: 1.33; previous revision: 1.32 done Checking in template/en/default/pages/linkify.html.tmpl; /cvsroot/mozilla/webtools/bugzilla/template/en/default/pages/linkify.html.tmpl,v <-- linkify.html.tmpl new revision: 1.7; previous revision: 1.6 done Checking in template/en/default/attachment/create.html.tmpl; /cvsroot/mozilla/webtools/bugzilla/template/en/default/attachment/create.html.tmpl,v <-- create.html.tmpl new revision: 1.22.2.1; previous revision: 1.22 done Checking in template/en/default/bug/edit.html.tmpl; /cvsroot/mozilla/webtools/bugzilla/template/en/default/bug/edit.html.tmpl,v <-- edit.html.tmpl new revision: 1.69.2.1; previous revision: 1.69 done Checking in template/en/default/bug/create/create-guided.html.tmpl; /cvsroot/mozilla/webtools/bugzilla/template/en/default/bug/create/create-guided.html.tmpl,v <-- create-guided.html.tmpl new revision: 1.26.4.1; previous revision: 1.26 done Checking in template/en/default/bug/create/create.html.tmpl; /cvsroot/mozilla/webtools/bugzilla/template/en/default/bug/create/create.html.tmpl,v <-- create.html.tmpl new revision: 1.54.2.1; previous revision: 1.54 done Checking in template/en/default/list/edit-multiple.html.tmpl; /cvsroot/mozilla/webtools/bugzilla/template/en/default/list/edit-multiple.html.tmpl,v <-- edit-multiple.html.tmpl new revision: 1.31.2.1; previous revision: 1.31 done Checking in template/en/default/pages/linkify.html.tmpl; /cvsroot/mozilla/webtools/bugzilla/template/en/default/pages/linkify.html.tmpl,v <-- linkify.html.tmpl new revision: 1.5.6.1; previous revision: 1.5 done Checking in template/en/default/attachment/create.html.tmpl; /cvsroot/mozilla/webtools/bugzilla/template/en/default/attachment/create.html.tmpl,v <-- create.html.tmpl new revision: 1.20.4.1; previous revision: 1.20 done Checking in template/en/default/bug/edit.html.tmpl; /cvsroot/mozilla/webtools/bugzilla/template/en/default/bug/edit.html.tmpl,v <-- edit.html.tmpl new revision: 1.60.2.5; previous revision: 1.60.2.4 done Checking in template/en/default/bug/create/create-guided.html.tmpl; /cvsroot/mozilla/webtools/bugzilla/template/en/default/bug/create/create-guided.html.tmpl,v <-- create-guided.html.tmpl new revision: 1.26.2.1; previous revision: 1.26 done Checking in template/en/default/bug/create/create.html.tmpl; /cvsroot/mozilla/webtools/bugzilla/template/en/default/bug/create/create.html.tmpl,v <-- create.html.tmpl new revision: 1.51.2.2; previous revision: 1.51.2.1 done Checking in template/en/default/list/edit-multiple.html.tmpl; /cvsroot/mozilla/webtools/bugzilla/template/en/default/list/edit-multiple.html.tmpl,v <-- edit-multiple.html.tmpl new revision: 1.26.2.3; previous revision: 1.26.2.2 done Checking in template/en/default/pages/linkify.html.tmpl; /cvsroot/mozilla/webtools/bugzilla/template/en/default/pages/linkify.html.tmpl,v <-- linkify.html.tmpl new revision: 1.5.4.1; previous revision: 1.5 done
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
I've applied FILTER none to constants.COMMENT_COLS to make tinderbox happy. Checking in template/en/default/attachment/create.html.tmpl; /cvsroot/mozilla/webtools/bugzilla/template/en/default/attachment/create.html.tmpl,v <-- create.html.tmpl new revision: 1.22.2.2; previous revision: 1.22.2.1 done Checking in template/en/default/bug/edit.html.tmpl; /cvsroot/mozilla/webtools/bugzilla/template/en/default/bug/edit.html.tmpl,v <-- edit.html.tmpl new revision: 1.69.2.2; previous revision: 1.69.2.1 done Checking in template/en/default/bug/create/create-guided.html.tmpl; /cvsroot/mozilla/webtools/bugzilla/template/en/default/bug/create/create-guided.html.tmpl,v <-- create-guided.html.tmpl new revision: 1.26.4.2; previous revision: 1.26.4.1 done Checking in template/en/default/bug/create/create.html.tmpl; /cvsroot/mozilla/webtools/bugzilla/template/en/default/bug/create/create.html.tmpl,v <-- create.html.tmpl new revision: 1.54.2.2; previous revision: 1.54.2.1 done Checking in template/en/default/list/edit-multiple.html.tmpl; /cvsroot/mozilla/webtools/bugzilla/template/en/default/list/edit-multiple.html.tmpl,v <-- edit-multiple.html.tmpl new revision: 1.31.2.2; previous revision: 1.31.2.1 done Checking in template/en/default/pages/linkify.html.tmpl; /cvsroot/mozilla/webtools/bugzilla/template/en/default/pages/linkify.html.tmpl,v <-- linkify.html.tmpl new revision: 1.5.6.2; previous revision: 1.5.6.1 done Checking in template/en/default/attachment/create.html.tmpl; /cvsroot/mozilla/webtools/bugzilla/template/en/default/attachment/create.html.tmpl,v <-- create.html.tmpl new revision: 1.20.4.2; previous revision: 1.20.4.1 done Checking in template/en/default/bug/edit.html.tmpl; /cvsroot/mozilla/webtools/bugzilla/template/en/default/bug/edit.html.tmpl,v <-- edit.html.tmpl new revision: 1.60.2.6; previous revision: 1.60.2.5 done Checking in template/en/default/bug/create/create-guided.html.tmpl; /cvsroot/mozilla/webtools/bugzilla/template/en/default/bug/create/create-guided.html.tmpl,v <-- create-guided.html.tmpl new revision: 1.26.2.2; previous revision: 1.26.2.1 done Checking in template/en/default/bug/create/create.html.tmpl; /cvsroot/mozilla/webtools/bugzilla/template/en/default/bug/create/create.html.tmpl,v <-- create.html.tmpl new revision: 1.51.2.3; previous revision: 1.51.2.2 done Checking in template/en/default/list/edit-multiple.html.tmpl; /cvsroot/mozilla/webtools/bugzilla/template/en/default/list/edit-multiple.html.tmpl,v <-- edit-multiple.html.tmpl new revision: 1.26.2.4; previous revision: 1.26.2.3 done Checking in template/en/default/pages/linkify.html.tmpl; /cvsroot/mozilla/webtools/bugzilla/template/en/default/pages/linkify.html.tmpl,v <-- linkify.html.tmpl new revision: 1.5.4.2; previous revision: 1.5.4.1 done
On tip I accidentally commited an additional change, backing it out: Checking in template/en/default/global/user-error.html.tmpl; /cvsroot/mozilla/webtools/bugzilla/template/en/default/global/user-error.html.tmpl,v <-- user-error.html.tmpl new revision: 1.153; previous revision: 1.152 done
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: