summaryrefslogtreecommitdiffstats
path: root/editproducts.cgi
diff options
context:
space:
mode:
authorwurblzap%gmail.com <>2008-03-11 01:37:56 +0100
committerwurblzap%gmail.com <>2008-03-11 01:37:56 +0100
commit5f77ed27305d20ec9c28e637d6194ed3e87efd02 (patch)
tree7cb30a65618e0bf6ae6350d33a0576f70dfb1e44 /editproducts.cgi
parent8395dfa9da99caa8bdfa4cef7c7551a2b03a22fa (diff)
downloadbugzilla-5f77ed27305d20ec9c28e637d6194ed3e87efd02.tar.gz
bugzilla-5f77ed27305d20ec9c28e637d6194ed3e87efd02.tar.xz
Bug 421931 – Group control identifiers on product edit page should be localizable.
Patch by Marc Schumann <wurblzap@gmail.com>; r=LpSolit, a=LpSolit
Diffstat (limited to 'editproducts.cgi')
-rwxr-xr-xeditproducts.cgi24
1 files changed, 0 insertions, 24 deletions
diff --git a/editproducts.cgi b/editproducts.cgi
index e69c99c1e..d168360a6 100755
--- a/editproducts.cgi
+++ b/editproducts.cgi
@@ -69,28 +69,6 @@ $user->in_group('editcomponents')
action => "edit",
object => "products"});
-sub get_group_controls {
- my $product = shift;
-
- my $group_controls = $product->group_controls;
- # Convert Group Controls (membercontrol and othercontrol) from
- # integer to string to display Membercontrol/Othercontrol names
- # in the template.
- my $constants = {
- (CONTROLMAPNA) => 'NA',
- (CONTROLMAPSHOWN) => 'Shown',
- (CONTROLMAPDEFAULT) => 'Default',
- (CONTROLMAPMANDATORY) => 'Mandatory'};
-
- foreach my $group (keys %$group_controls) {
- foreach my $control ('membercontrol', 'othercontrol') {
- $group_controls->{$group}->{$control} =
- $constants->{$group_controls->{$group}->{$control}};
- }
- }
- return $group_controls;
-}
-
#
# often used variables
#
@@ -361,7 +339,6 @@ if ($action eq 'new') {
$vars->{'product'} = $product;
$vars->{'classification'} = new Bugzilla::Classification($product->classification_id)
if Bugzilla->params->{'useclassification'};
- $vars->{'group_controls'} = get_group_controls($product);
$vars->{'token'} = issue_session_token('edit_product');
$template->process("admin/products/edit.html.tmpl", $vars)
@@ -521,7 +498,6 @@ if ($action eq 'edit' || (!$action && $product_name)) {
}
$vars->{'classification'} = $classification;
}
- $vars->{'group_controls'} = get_group_controls($product);
$vars->{'product'} = $product;
$vars->{'token'} = issue_session_token('edit_product');