diff options
-rw-r--r-- | editfields.cgi | 1 | ||||
-rw-r--r-- | template/en/default/global/messages.html.tmpl | 5 |
2 files changed, 6 insertions, 0 deletions
diff --git a/editfields.cgi b/editfields.cgi index 17db14092..1a7024433 100644 --- a/editfields.cgi +++ b/editfields.cgi @@ -91,6 +91,7 @@ elsif ($action eq 'new') { Bugzilla::Field::create_or_update($vars); $vars->{'custom_fields'} = [Bugzilla->get_fields({'custom' => 1})]; + $vars->{'message'} = 'custom_field_created'; $template->process('admin/custom_fields/list.html.tmpl', $vars) || ThrowTemplateError($template->error()); diff --git a/template/en/default/global/messages.html.tmpl b/template/en/default/global/messages.html.tmpl index 2e1878b5f..cdc5158cf 100644 --- a/template/en/default/global/messages.html.tmpl +++ b/template/en/default/global/messages.html.tmpl @@ -160,6 +160,11 @@ Click <a href="[% redirect_url FILTER html %]">here</a> if the page does not automatically refresh. + [% ELSIF message_tag == "custom_field_created" %] + [% title = "Custom Field Created" %] + The new custom field '[% name FILTER html %]' has been + successfully created. + [% ELSIF message_tag == "emailold_change_cancelled" %] [% title = "Cancel Request to Change Email Address" %] The request to change the email address for your account to |