summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2006-08-22 06:42:55 +0200
committerlpsolit%gmail.com <>2006-08-22 06:42:55 +0200
commit8076d034878ebc044b30e8203594b8099a50ac57 (patch)
treedbc79d7410bc2f7614aebf4c6b24e77ba0ba5889
parentfcb6d45d570dd22c1219b02c36ba08d235912d4d (diff)
downloadbugzilla-8076d034878ebc044b30e8203594b8099a50ac57.tar.gz
bugzilla-8076d034878ebc044b30e8203594b8099a50ac57.tar.xz
Bug 349367: Display a message when a custom field has been successfully created - Patch by Frédéric Buclin <LpSolit@gmail.com> r=mkanat a=myk
-rw-r--r--editfields.cgi1
-rw-r--r--template/en/default/global/messages.html.tmpl5
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