Skip to content

Commit

Permalink
[xs][controller/package] bug fix: use _get_package_type in history fu…
Browse files Browse the repository at this point in the history
…nction instead of trying to access the 'type' key on the package dict (may not exist).
  • Loading branch information
johnglover committed Mar 26, 2012
1 parent 53991fc commit c9946d3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ckan/controllers/package.py
Expand Up @@ -375,7 +375,8 @@ def history(self, id):
)
feed.content_type = 'application/atom+xml'
return feed.writeString('utf-8')
return render( self._history_template(c.pkg_dict['type']))
package_type = self._get_package_type(id)
return render(self._history_template(package_type))

def new(self, data=None, errors=None, error_summary=None):

Expand Down

0 comments on commit c9946d3

Please sign in to comment.