Closed Bug 479164 Opened 15 years ago Closed 15 years ago

"Bug" appears raw in "File a Bug" on index.cgi

Categories

(Bugzilla :: User Interface, defect)

3.3.3
defect
Not set
minor

Tracking

()

RESOLVED FIXED
Bugzilla 3.4

People

(Reporter: mkanat, Assigned: LpSolit)

References

Details

(Keywords: regression)

Attachments

(1 file, 1 obsolete file)

In the new index.cgi, it doesn't use $terms.Bug, it just uses "Bug" for "File a Bug".
I'm really curious how our tests didn't catch this. It's pretty obvious:

<span>File a Bug</span>
Attached patch V1 (obsolete) — Splinter Review
Attachment #363041 - Flags: review?(mkanat)
Attachment #363041 - Flags: review?(LpSolit)
(In reply to comment #1)
> <span>File a Bug</span>

The regexp in t/009bugwords.t is:

  if (grep /(a?[\s>]bugs?[\s.:;,])/i, $text)

As Bug is followed by < here, it isn't caught by the regexp.
Attachment #363041 - Flags: review?(mkanat)
Attachment #363041 - Flags: review?(LpSolit)
Attachment #363041 - Flags: review-
Comment on attachment 363041 [details] [diff] [review]
V1

>-            <span>File a Bug</span>
>+            <span>File a [% terms.Bug %]</span>

Must be terms.abug or terms.ABug.
Severity: normal → minor
Version: unspecified → 3.3.3
Depends on: 475063
Keywords: regression
Attached patch patch, v2Splinter Review
I added terms.aBug to variables.none.tmpl and also fixed t/009bugwords.t to correctly catch "bug" right before an HTML tag.
Assignee: ui → LpSolit
Attachment #363041 - Attachment is obsolete: true
Status: NEW → ASSIGNED
Attachment #364111 - Flags: review?(ghendricks)
Attachment #364111 - Flags: review?(ghendricks) → review+
Flags: approval+
Must not be checked in before bug 478232 has been landed first, due to conflicts.
Depends on: 478232
No longer depends on: 478232
Checking in t/009bugwords.t;
/cvsroot/mozilla/webtools/bugzilla/t/009bugwords.t,v  <--  009bugwords.t
new revision: 1.8; previous revision: 1.7
done
Checking in template/en/default/index.html.tmpl;
/cvsroot/mozilla/webtools/bugzilla/template/en/default/index.html.tmpl,v  <--  index.html.tmpl
new revision: 1.43; previous revision: 1.42
done
Checking in template/en/default/global/variables.none.tmpl;
/cvsroot/mozilla/webtools/bugzilla/template/en/default/global/variables.none.tmpl,v  <--variables.none.tmpl
new revision: 1.8; previous revision: 1.7
done
Checking in template/en/default/pages/release-notes.html.tmpl;
/cvsroot/mozilla/webtools/bugzilla/template/en/default/pages/release-notes.html.tmpl,v  <--  release-notes.html.tmpl
new revision: 1.32; previous revision: 1.31
done
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: