summaryrefslogtreecommitdiffstats
path: root/editvalues.cgi
diff options
context:
space:
mode:
authorghendricks%novell.com <>2009-07-18 00:40:09 +0200
committerghendricks%novell.com <>2009-07-18 00:40:09 +0200
commite394756f42902de5eade4f6738127c25fa2bcef7 (patch)
treebbb29b8118eb619d791ea4605207befa1a076692 /editvalues.cgi
parentf304db03fdb9c7ad5c814700f048bb9061131cd3 (diff)
downloadbugzilla-e394756f42902de5eade4f6738127c25fa2bcef7.tar.gz
bugzilla-e394756f42902de5eade4f6738127c25fa2bcef7.tar.xz
Bug 456743 - Add the ability to disable field values (mark them as inactive)
patch by ghendricks@novell.com r=LpSolit, a=LpSolit
Diffstat (limited to 'editvalues.cgi')
-rwxr-xr-xeditvalues.cgi3
1 files changed, 3 insertions, 0 deletions
diff --git a/editvalues.cgi b/editvalues.cgi
index 3c553c8d1..477bf8696 100755
--- a/editvalues.cgi
+++ b/editvalues.cgi
@@ -188,6 +188,9 @@ if ($action eq 'update') {
$value->set_name($cgi->param('value_new'));
$value->set_sortkey($cgi->param('sortkey'));
$value->set_visibility_value($cgi->param('visibility_value_id'));
+ if (!($value->is_static || $value->is_default)) {
+ $value->set_is_active($cgi->param('is_active'));
+ }
$vars->{'changes'} = $value->update();
delete_token($token);
$vars->{'message'} = 'field_value_updated';