From: lpsolit%gmail.com <> Date: Thu, 18 Jan 2007 06:27:09 +0000 (+0000) Subject: Bug 299405: Attachments don't work if you need to log in again [ Undefined subroutine... X-Git-Tag: bugzilla-2.23.4~13 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7c0b9e7f84e5f10adc9df3a2590eef6d266b673a;p=thirdparty%2Fbugzilla.git Bug 299405: Attachments don't work if you need to log in again [ Undefined subroutine @ Fh::slice ] - Patch by Frédéric Buclin r/a=justdave --- diff --git a/skins/standard/global.css b/skins/standard/global.css index b85a9e2773..7504cb0fbe 100644 --- a/skins/standard/global.css +++ b/skins/standard/global.css @@ -281,6 +281,14 @@ dl dl > dt { border-top: none; } +.box { + border: 1px solid black; + color: black; + background-color: #ffc; + margin: 1em; + padding: 0.5em 1em; +} + /* Rules specific for printing */ @media print { #header, #footer { diff --git a/template/en/default/account/auth/login.html.tmpl b/template/en/default/account/auth/login.html.tmpl index 15ec4a477a..f57efc113f 100644 --- a/template/en/default/account/auth/login.html.tmpl +++ b/template/en/default/account/auth/login.html.tmpl @@ -31,11 +31,14 @@ onload = "document.forms['login'].Bugzilla_login.focus()" %] +[% USE Bugzilla %] +

I need a legitimate login and password to continue.

-
+ diff --git a/template/en/default/bug/create/confirm-create-dupe.html.tmpl b/template/en/default/bug/create/confirm-create-dupe.html.tmpl index 47d2ae916a..9c2b3dbc25 100644 --- a/template/en/default/bug/create/confirm-create-dupe.html.tmpl +++ b/template/en/default/bug/create/confirm-create-dupe.html.tmpl @@ -27,6 +27,8 @@ title = "Already filed $terms.bug" %] +[% USE Bugzilla %] +
@@ -44,7 +46,8 @@ FILTER bug_link(bugid) FILTER none %].

If you are sure you used the same form to submit a new [% terms.bug %], click 'File [% terms.bug %] again'.

- + [% PROCESS "global/hidden-fields.html.tmpl" exclude="^(Bugzilla_login|Bugzilla_password|ignore_token)$" %] diff --git a/template/en/default/global/confirm-user-match.html.tmpl b/template/en/default/global/confirm-user-match.html.tmpl index 8fb20e0703..35ec93f74e 100644 --- a/template/en/default/global/confirm-user-match.html.tmpl +++ b/template/en/default/global/confirm-user-match.html.tmpl @@ -42,10 +42,15 @@ [% IF matchsuccess == 1 %] [% PROCESS global/header.html.tmpl title="Confirm Match" %] +[% USE Bugzilla %] +

diff --git a/template/en/default/global/hidden-fields.html.tmpl b/template/en/default/global/hidden-fields.html.tmpl index 7327e43cfa..063cdd33b3 100644 --- a/template/en/default/global/hidden-fields.html.tmpl +++ b/template/en/default/global/hidden-fields.html.tmpl @@ -34,8 +34,26 @@ [%# The '.slice(0)' bit is here to force the 'param(field)' to be evaluated in a list context, so we can avoid extra code checking for single valued or empty fields %] - [% FOREACH mvalue = cgi.param(field).slice(0) %] - +

+ We were unable to store the file you uploaded because of incomplete information + in the form you just submitted. Because we are unable to retain the file between + form submissions, you must re-attach the file in addition to completing the + remaining missing information above. +

+

+ Please re-attach the file [% cgi.param(field) FILTER html %] in + the field below: +

+

+ +

+ + [% ELSE %] + [% FOREACH mvalue = cgi.param(field).slice(0) %] + [% END %] + [% END %] [% END %]