]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 349367: Display a message when a custom field has been successfully created ...
authorlpsolit%gmail.com <>
Tue, 22 Aug 2006 04:42:55 +0000 (04:42 +0000)
committerlpsolit%gmail.com <>
Tue, 22 Aug 2006 04:42:55 +0000 (04:42 +0000)
editfields.cgi
template/en/default/global/messages.html.tmpl

index 17db140928576692d421f0e540030428b1b19a28..1a70244336f03303707143334273b8f13ec3aeb3 100644 (file)
@@ -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());
index 2e1878b5feb6e451f4053faa1115cdba0a996a48..cdc5158cf6dd19a852827422f127b770fef41c4f 100644 (file)
     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