Closed Bug 317003 Opened 19 years ago Closed 19 years ago

Change the listing of valid fields values in bug_email.pl

Categories

(Bugzilla :: Creating/Changing Bugs, defect)

All
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED
Bugzilla 2.20

People

(Reporter: tiagoratto, Assigned: gabriel.sales)

References

Details

Attachments

(1 file)

Since the valid values aren't described on the table field type anymore, it's necessary to chance the validation Subs of bug_email.pm to use the descriptor tables. This is part of the reply: You sent wrong priority-setting, valid values are:varchar(64 * The priority is set to the default value '' You sent wrong bug_severity-setting, valid values are:varchar(64 * The bug_severity is set to the default value 'normal' You sent wrong platform-setting, valid values are:varchar(64 * The rep_platform is set to the default value 'All' You sent wrong OS-setting, valid values are:varchar(64 * The op_sys is set to the default value 'Linux' These are the Subs that have to be changed: sub CheckPriority sub CheckSeverity sub CheckPlatform sub CheckSystem
> Since the valid values aren't described on the table field type anymore, it's > necessary to chance the validation Subs of bug_email.pm to use the descriptor > tables. > > This is part of the reply: > > You sent wrong priority-setting, valid values are:varchar(64 > > * The priority is set to the default value '' > > You sent wrong bug_severity-setting, valid values are:varchar(64 > > * The bug_severity is set to the default value 'normal' > > You sent wrong platform-setting, valid values are:varchar(64 > > * The rep_platform is set to the default value 'All' > > You sent wrong OS-setting, valid values are:varchar(64 > > * The op_sys is set to the default value 'Linux' > > > These are the Subs that have to be changed: > > sub CheckPriority > sub CheckSeverity > sub CheckPlatform > sub CheckSystem > Acctually, the only Sub that have to be changed is Sub getEnumList (In reply to comment #0)
Status: NEW → ASSIGNED
Attached patch Patch v1Splinter Review
Attachment #203538 - Flags: review?(vladd)
Assignee: create-and-change → tiagoratto
Status: ASSIGNED → NEW
Attachment #203538 - Flags: review?(vladd) → review?
Target Milestone: --- → Bugzilla 2.24
Summary: Change the listing of valid fileds values in bug_email.pm → Change the listing of valid fileds values in bug_email.pl
*** Bug 321843 has been marked as a duplicate of this bug. ***
Blocks: 322955
Assignee: tiagoratto → create-and-change
This is a bug introduced by bug 146104 , so the fix should go in 2.20.
Assignee: create-and-change → tiagoratto
Summary: Change the listing of valid fileds values in bug_email.pl → Change the listing of valid fields values in bug_email.pl
Target Milestone: Bugzilla 2.24 → Bugzilla 2.20
Comment on attachment 203538 [details] [diff] [review] Patch v1 You are inconsistent with spacing near the equal sign ("=") and near the ( ) signs: - my @all_sever = getEnumList( "bug_severity" ); + my $all_sever = getEnumList("bug_severity"); - my @all= getEnumList( "area" ); + my $all= getEnumList( "area" ); - my @all = getEnumList( "rep_platform" ); + my $all = getEnumList( "rep_platform" ); but that can be fixed upon checkin.
Attachment #203538 - Flags: review? → review+
Not sure if we need approval for contrib.
Flags: approval?
Flags: approval2.20?
Assignee: tiagoratto → gabriel
Flags: approval?
Flags: approval2.22+
Flags: approval2.20?
Flags: approval2.20+
Flags: approval+
Checking in contrib/bug_email.pl; /cvsroot/mozilla/webtools/bugzilla/contrib/bug_email.pl,v <-- bug_email.pl new revision: 1.32; previous revision: 1.31 done Checking in contrib/bug_email.pl; /cvsroot/mozilla/webtools/bugzilla/contrib/bug_email.pl,v <-- bug_email.pl new revision: 1.31.2.1; previous revision: 1.31 done Checking in contrib/bug_email.pl; /cvsroot/mozilla/webtools/bugzilla/contrib/bug_email.pl,v <-- bug_email.pl new revision: 1.28.2.1; previous revision: 1.28 done
Status: NEW → RESOLVED
Closed: 19 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: