File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 1414 1117860)
1515- better unit tests for security mechanisms
1616- code cleanup (sf patch 1115329 and additional)
17+ - fix search_checkboxes macro (sf patch 1113828)
1718
1819
19202005-01-13 0.8.0b2
Original file line number Diff line number Diff line change @@ -188,10 +188,11 @@ <h2><span metal:define-slot="body_title">body title</span></h2>
188188
189189< td metal:define-macro ="search_checkboxes ">
190190 < ul class ="search-checkboxes "
191- tal:define ="value python:request.form.getvalue(name) ">
191+ tal:define ="value python:request.form.getvalue(name);
192+ values python:value and value.split(',') or [] ">
192193 < li tal:repeat ="s python:db[db_klass].list() ">
193194 < input type ="checkbox " tal:attributes ="name name; id string:$name-${s/id};
194- value s/id; checked python:value == s.id " />
195+ value s/id; checked python:s.id in values " />
195196 < label tal:attributes ="for string:$name-${s/id} "
196197 tal:content ="python:s[db_content] " />
197198 </ li >
You can’t perform that action at this time.
0 commit comments