From b8f0c041640c48d0e0e88eb02da6f9cf1bc0aaf3 Mon Sep 17 00:00:00 2001 From: "dkl%redhat.com" <> Date: Sat, 28 Jun 2008 00:56:18 +0000 Subject: Bug 422691 – Attachment gets added twice after hitting "Back" and "Refresh" Patch by David Lawrence - r/a=LpSolit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../attachment/cancel-create-dupe.html.tmpl | 48 ++++++++++++++++++++++ template/en/default/attachment/create.html.tmpl | 1 + 2 files changed, 49 insertions(+) create mode 100644 template/en/default/attachment/cancel-create-dupe.html.tmpl (limited to 'template') diff --git a/template/en/default/attachment/cancel-create-dupe.html.tmpl b/template/en/default/attachment/cancel-create-dupe.html.tmpl new file mode 100644 index 000000000..f838955bc --- /dev/null +++ b/template/en/default/attachment/cancel-create-dupe.html.tmpl @@ -0,0 +1,48 @@ +[%# The contents of this file are subject to the Mozilla Public + # License Version 1.1 (the "License"); you may not use this file + # except in compliance with the License. You may obtain a copy of + # the License at http://www.mozilla.org/MPL/ + # + # Software distributed under the License is distributed on an "AS + # IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or + # implied. See the License for the specific language governing + # rights and limitations under the License. + # + # The Original Code is the Bugzilla Bug Tracking System. + # + # The Initial Developer of the Original Code is Olav Vitters. + # + # Contributor(s): Olav Vitters + # David Lawrence + #%] + +[%# INTERFACE: + # bugid: integer. ID of the bug report that this attachment relates to. + # attachid: integer. ID of the previous attachment recently created. + #%] + +[% PROCESS "global/field-descs.none.tmpl" %] + +[% PROCESS global/header.html.tmpl + title = "Already filed attachment" +%] + +[% USE Bugzilla %] + + + + + +
+ + You already used the form to file + attachment [% attachid FILTER url_quote %]. + +
+ +

+ You can either + create a new attachment or [% "go back to $terms.bug $bugid" FILTER bug_link(bugid) FILTER none %]. +

+ +[% PROCESS global/footer.html.tmpl %] diff --git a/template/en/default/attachment/create.html.tmpl b/template/en/default/attachment/create.html.tmpl index 7944228f3..10648159b 100644 --- a/template/en/default/attachment/create.html.tmpl +++ b/template/en/default/attachment/create.html.tmpl @@ -42,6 +42,7 @@

+ [% PROCESS attachment/createformcontents.html.tmpl %] -- cgit v1.2.3-24-g4f1b