Closed Bug 281574 Opened 20 years ago Closed 20 years ago

Combine version_/milestone_/component_no_action errors into one.

Categories

(Bugzilla :: Bugzilla-General, enhancement)

2.18
enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
Bugzilla 2.20

People

(Reporter: shane.h.w.travis, Assigned: shane.h.w.travis)

References

Details

Attachments

(1 file, 1 obsolete file)

These three entries in user-error.html.tmpl are identical, save for one word. 
These could easily be combined into one 'no_valid_action' error message, and 
the one word passed in as a field.

Patch to follow.
Attached patch Code patch for tip (obsolete) — Splinter Review
I'm about to need this as part of bug 98123... so rather than make another
identical error message, I thought I'd clean things up a bit.
Attachment #173804 - Flags: review?(wurblzap)
Comment on attachment 173804 [details] [diff] [review]
Code patch for tip

>+ThrowUserError('no_valid_action', {'name' => "milestoness"});

milestones with one 's'!


Else it's good: r=LpSolit
Attachment #173804 - Flags: review?(wurblzap) → review+
Status: NEW → ASSIGNED
Flags: approval?
Target Milestone: --- → Bugzilla 2.20
not localisable though.....
Gavin makes a good (if frustrating) point... so here's a version that works
with localization.
Attachment #173804 - Attachment is obsolete: true
Attachment #173867 - Flags: review?(LpSolit)
Comment on attachment 173867 [details] [diff] [review]
Code patch for tip, take 2

r=LpSolit

Indeed much better! :)
Attachment #173867 - Flags: review?(LpSolit) → review+
Blocks: 98123
Flags: approval? → approval+
Checking in editcomponents.cgi;
/cvsroot/mozilla/webtools/bugzilla/editcomponents.cgi,v  <--  editcomponents.cgi
new revision: 1.46; previous revision: 1.45
done
Checking in editmilestones.cgi;
/cvsroot/mozilla/webtools/bugzilla/editmilestones.cgi,v  <--  editmilestones.cgi
new revision: 1.30; previous revision: 1.29
done
Checking in editversions.cgi;
/cvsroot/mozilla/webtools/bugzilla/editversions.cgi,v  <--  editversions.cgi
new revision: 1.29; previous revision: 1.28
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.88; previous revision: 1.87
done
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Severity: trivial → enhancement
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: