File tree Expand file tree Collapse file tree 4 files changed +16
-2
lines changed
Expand file tree Collapse file tree 4 files changed +16
-2
lines changed Original file line number Diff line number Diff line change 2121- fix "Adding a new constrained field to the classic schema" example in docs
2222 (sf bug 1433118)
2323- fix security check in mailgw (sf bug 1442145)
24+ - fix "clear this message" (sf bug 1429367)
2425
2526
26272006-02-10 1.1.0
Original file line number Diff line number Diff line change @@ -2064,6 +2064,7 @@ def __init__(self, client):
20642064
20652065 # store the current class name and action
20662066 self .classname = client .classname
2067+ self .nodeid = client .nodeid
20672068 self .template = client .template
20682069
20692070 # the special char to use for special vars
@@ -2073,6 +2074,17 @@ def __init__(self, client):
20732074
20742075 self ._post_init ()
20752076
2077+ def current_url (self ):
2078+ url = self .base
2079+ if self .classname :
2080+ url += self .classname
2081+ if self .nodeid :
2082+ url += self .nodeid
2083+ args = {}
2084+ if self .template :
2085+ args ['@template' ] = self .template
2086+ return self .indexargs_url (url , args )
2087+
20762088 def _post_init (self ):
20772089 ''' Set attributes based on self.form
20782090 '''
Original file line number Diff line number Diff line change @@ -133,7 +133,7 @@ <h2><span metal:define-slot="body_title">body title</span></h2>
133133 < p tal:condition ="options/ok_message | nothing " class ="ok-message ">
134134 < span tal:repeat ="m options/ok_message "
135135 tal:content ="structure string:$m <br/ > " />
136- < a class ="form-small " tal:attributes ="href string:issue${context/id} "
136+ < a class ="form-small " tal:attributes ="href request/current_url "
137137 i18n:translate =""> clear this message</ a >
138138 </ p >
139139 </ td >
@@ -229,3 +229,4 @@ <h2><span metal:define-slot="body_title">body title</span></h2>
229229 tal:attributes ="value name;
230230 checked python:name == group_on ">
231231</ td >
232+
Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ <h2><span metal:define-slot="body_title">body title</span></h2>
7878 < p tal:condition ="options/ok_message | nothing " class ="ok-message ">
7979 < span tal:repeat ="m options/ok_message "
8080 tal:content ="structure string:$m <br/ > " />
81- < a class ="form-small " tal:attributes ="href string:issue${context/id} "
81+ < a class ="form-small " tal:attributes ="href request/current_url "
8282 i18n:translate =""> clear this message</ a >
8383 </ p >
8484 </ td >
You can’t perform that action at this time.
0 commit comments