From 8076d034878ebc044b30e8203594b8099a50ac57 Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Tue, 22 Aug 2006 04:42:55 +0000 Subject: =?UTF-8?q?Bug=20349367:=20Display=20a=20message=20when=20a=20cust?= =?UTF-8?q?om=20field=20has=20been=20successfully=20created=20-=20Patch=20?= =?UTF-8?q?by=20Fr=C3=A9d=C3=A9ric=20Buclin=20=20r=3Dmk?= =?UTF-8?q?anat=20a=3Dmyk?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- editfields.cgi | 1 + template/en/default/global/messages.html.tmpl | 5 +++++ 2 files changed, 6 insertions(+) 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 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 -- cgit v1.2.1