From: lpsolit%gmail.com <> Date: Tue, 22 Aug 2006 04:42:55 +0000 (+0000) Subject: Bug 349367: Display a message when a custom field has been successfully created ... X-Git-Tag: bugzilla-2.23.3~122 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8076d034878ebc044b30e8203594b8099a50ac57;p=thirdparty%2Fbugzilla.git Bug 349367: Display a message when a custom field has been successfully created - Patch by Frédéric Buclin r=mkanat a=myk --- diff --git a/editfields.cgi b/editfields.cgi index 17db140928..1a70244336 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 2e1878b5fe..cdc5158cf6 100644 --- a/template/en/default/global/messages.html.tmpl +++ b/template/en/default/global/messages.html.tmpl @@ -160,6 +160,11 @@ Click here 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