Skip to content

Commit

Permalink
[2375] Fix the group edit form dataset loop
Browse files Browse the repository at this point in the history
  • Loading branch information
aron committed Jun 5, 2012
1 parent a275ad3 commit c6f1305
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ckan/templates/group/pages/form.html
Expand Up @@ -57,8 +57,8 @@ <h2>{{ _('Errors in form') }}</h2>
<label class="control-label">{{ _('Datasets') }}</label>
<div class="controls">
{% for dataset in data.packages %}
<label class="checkbox" for="field-dataset-{{ loop.index }}">
<input id="field-dataset-{{ loop.index }}" type="checkbox" name="packages__{{ loop.index }}__name" value="{{ dataset.name }}" checked="checked" />
<label class="checkbox" for="field-dataset-{{ loop.index0 }}">
<input id="field-dataset-{{ loop.index0 }}" type="checkbox" name="packages__{{ loop.index0 }}__name" value="{{ dataset.name }}" checked="checked" />
{{ dataset.title }}
</label>
{% endfor %}
Expand Down

0 comments on commit c6f1305

Please sign in to comment.