Skip to content

Commit

Permalink
[#368] Use the correct schema to validate against in controllers.grou…
Browse files Browse the repository at this point in the history
…p.history
  • Loading branch information
domoritz committed Mar 6, 2013
1 parent b6fafee commit b5f69fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ckan/controllers/group.py
Expand Up @@ -671,7 +671,7 @@ def history(self, id):

context = {'model': model, 'session': model.Session,
'user': c.user or c.author,
'schema': self._form_to_db_schema()}
'schema': self._db_to_form_schema()}
data_dict = {'id': id}
try:
c.group_dict = self._action('group_show')(context, data_dict)
Expand Down

2 comments on commit b5f69fc

@seanh
Copy link
Contributor

@seanh seanh commented on b5f69fc Mar 6, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@domoritz In a commit message like this I would try to explain why this change was made, i.e. what was breaking before and how the new behaviour fixes it. (No need to rewrite it now though.)

@domoritz
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the remark.

Please sign in to comment.