Open Bug 306800 Opened 19 years ago Updated 2 years ago

editcomponents.cgi should edit by default if no action specified and product and component are given

Categories

(Bugzilla :: Administration, task)

2.19.1
x86
Windows XP
task
Not set
normal

Tracking

()

ASSIGNED

People

(Reporter: timeless, Assigned: bugzilla)

References

()

Details

Attachments

(1 file)

i didn't specify &action=edit because i couldn't guess that, i shouldn't need to.

expected results, &action=edit should be optional for things that make sense.
Summary: this url should do what i want → editcomponents.cgi should edit by default if no action specified and product and component are given
Assignee: administration → bugzilla
Status: NEW → ASSIGNED
Attachment #194710 - Flags: review?
Comment on attachment 194710 [details] [diff] [review]
default editcomponents action to edit if component and product supplied v1

>  my $component = trim($cgi->param('component') || '');
>  my $action    = trim($cgi->param('action')    || '');
>  
>+ # If we have a product and a component but no action, then we might as
>+ # well edit it
>+ if (!$action && $product && $component) { $action = 'edit'; }

$component is now $comp_name. And the way editcomponents.cgi now works has
changed a bit.
Attachment #194710 - Flags: review? → review-

$ rg editcomponents gives 0 results

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: