Skip to content

Commit ee4d003

Browse files
author
Richard Jones
committed
fixed classic tracker template to submit POST requests when appropriate
1 parent efbcad0 commit ee4d003

File tree

3 files changed

+54
-3
lines changed

3 files changed

+54
-3
lines changed

CHANGES.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ are given with the most recent entry first.
66
Fixes:
77

88
- fixed action taken in response to invalid GET request
9+
- fixed classic tracker template to submit POST requests when appropriate
910

1011

1112
2009-03-18 1.4.8 (r4209)

doc/upgrading.txt

Lines changed: 51 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,56 @@ steps.
1313

1414
.. contents::
1515

16+
Migrating from 1.4.x to 1.4.9
17+
=============================
18+
19+
Fix the "remove" button in issue files and messages lists
20+
---------------------------------------------------------
21+
22+
The "remove" button(s) in the issue messages list needs to be altered. Find
23+
the following in your tracker's ``html/issue.item.html`` template::
24+
25+
<td>
26+
<form style="padding:0" tal:condition="context/is_edit_ok"
27+
tal:attributes="action string:issue${context/id}">
28+
<input type="hidden" name="@remove@files" tal:attributes="value file/id">
29+
30+
and add ``method="POST"`` as shown below::
31+
32+
<td>
33+
<form style="padding:0" method="POST" tal:condition="context/is_edit_ok"
34+
tal:attributes="action string:issue${context/id}">
35+
<input type="hidden" name="@remove@files" tal:attributes="value file/id">
36+
37+
Then also find::
38+
39+
<td>
40+
<form style="padding:0" tal:condition="context/is_edit_ok"
41+
tal:attributes="action string:issue${context/id}">
42+
<input type="hidden" name="@remove@messages" tal:attributes="value msg/id">
43+
44+
and add ``method="POST"`` as shown below::
45+
46+
<td>
47+
<form style="padding:0" method="POST" tal:condition="context/is_edit_ok"
48+
tal:attributes="action string:issue${context/id}">
49+
<input type="hidden" name="@remove@messages" tal:attributes="value msg/id">
50+
51+
52+
Fixing the "retire" button in user management list
53+
--------------------------------------------------
54+
55+
If you made the change to the "reture" link in the user management list as
56+
listed below in `Migrating from 1.4.x to 1.4.7`_ then you'll need to fix that
57+
change by adding ``method="POST"`` to the ``<form>`` tag::
58+
59+
<form style="padding:0" method="POST"
60+
tal:attributes="action string:user${user/id}">
61+
<input type="hidden" name="@template" value="index">
62+
<input type="hidden" name="@action" value="retire">
63+
<input type="submit" value="retire" i18n:attributes="value">
64+
</form>
65+
1666

1767
Migrating from 1.4.x to 1.4.7
1868
=============================
@@ -53,7 +103,7 @@ The "retire" link found in the file ``html/users.index.html``::
53103
Should be replaced with::
54104

55105
<td tal:condition="context/is_retire_ok">
56-
<form style="padding:0"
106+
<form style="padding:0" method="POST"
57107
tal:attributes="action string:user${user/id}">
58108
<input type="hidden" name="@template" value="index">
59109
<input type="hidden" name="@action" value="retire">

share/roundup/templates/classic/html/issue.item.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@
151151
tal:attributes="href string:file${file/id}">edit</a>
152152
</td>
153153
<td>
154-
<form style="padding:0" tal:condition="context/is_edit_ok"
154+
<form style="padding:0" method="POST" tal:condition="context/is_edit_ok"
155155
tal:attributes="action string:issue${context/id}">
156156
<input type="hidden" name="@remove@files" tal:attributes="value file/id">
157157
<input type="hidden" name="@action" value="edit">
@@ -172,7 +172,7 @@
172172
<th i18n:translate="">Date: <tal:x replace="msg/date"
173173
i18n:name="date" /></th>
174174
<th>
175-
<form style="padding:0" tal:condition="context/is_edit_ok"
175+
<form style="padding:0" method="POST" tal:condition="context/is_edit_ok"
176176
tal:attributes="action string:issue${context/id}">
177177
<input type="hidden" name="@remove@messages" tal:attributes="value msg/id">
178178
<input type="hidden" name="@action" value="edit">

0 commit comments

Comments
 (0)