Skip to content

Commit e40d9ce

Browse files
author
Richard Jones
committed
merge from HEAD
1 parent 0d9bcba commit e40d9ce

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

CHANGES.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ Fixed:
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

1920
2005-01-13 0.8.0b2

templates/classic/html/page.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff 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>

0 commit comments

Comments
 (0)