diff options
author | mkanat%bugzilla.org <> | 2006-07-04 04:26:20 +0000 |
---|---|---|
committer | mkanat%bugzilla.org <> | 2006-07-04 04:26:20 +0000 |
commit | b1f4cf8bdc4b49c02ebebbee2553202bc46ab720 (patch) | |
tree | 8dddf198fa0cb29b5cef3833ff3469f07d34fdf7 /editvalues.cgi | |
parent | 49979b3775108f709cefbc9190eb9c7546aace94 (diff) | |
download | bugs-b1f4cf8bdc4b49c02ebebbee2553202bc46ab720.tar bugs-b1f4cf8bdc4b49c02ebebbee2553202bc46ab720.tar.gz bugs-b1f4cf8bdc4b49c02ebebbee2553202bc46ab720.tar.bz2 bugs-b1f4cf8bdc4b49c02ebebbee2553202bc46ab720.tar.xz bugs-b1f4cf8bdc4b49c02ebebbee2553202bc46ab720.zip |
Bug 342869: Use Bugzilla->params everywhere except templates
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=justdave
Diffstat (limited to 'editvalues.cgi')
-rwxr-xr-x | editvalues.cgi | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/editvalues.cgi b/editvalues.cgi index 68cd6917a..c812c6c87 100755 --- a/editvalues.cgi +++ b/editvalues.cgi @@ -156,7 +156,7 @@ unless ($action) { {Slice =>{}}); $vars->{'field'} = $field; $vars->{'values'} = $fieldvalues; - $vars->{'default'} = Param($defaults{$field}); + $vars->{'default'} = Bugzilla->params->{$defaults{$field}}; $template->process("admin/fieldvalues/list.html.tmpl", $vars) || ThrowTemplateError($template->error()); @@ -258,7 +258,7 @@ if ($action eq 'del') { # if ($action eq 'delete') { ValueMustExist($field, $value); - if ($value eq Param($defaults{$field})) { + if ($value eq Bugzilla->params->{$defaults{$field}}) { ThrowUserError('fieldvalue_is_default', {field => $field, value => $value, param_name => $defaults{$field}}) @@ -381,7 +381,7 @@ if ($action eq 'update') { # This update is done while tables are unlocked due to the # annoying calls in Bugzilla/Config/Common.pm. if ($value ne $valueold - && $valueold eq Param($defaults{$field})) + && $valueold eq Bugzilla->params->{$defaults{$field}}) { SetParam($defaults{$field}, $value); WriteParams(); |