Skip to content

Commit

Permalink
Call setup_template_variables() in new_metadata()
Browse files Browse the repository at this point in the history
Fixes #297
  • Loading branch information
Sean Hammond authored and tobes committed Jan 24, 2013
1 parent bc1d99c commit 45c6d0e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ckan/controllers/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -722,6 +722,11 @@ def new_metadata(self, id, data=None, errors=None, error_summary=None):
error_summary = error_summary or {}
vars = {'data': data, 'errors': errors, 'error_summary': error_summary}
vars['pkg_name'] = id

package_type = self._get_package_type(id)
self._setup_template_variables(context, {},
package_type=package_type)

return render('package/new_package_metadata.html', extra_vars=vars)

def edit(self, id, data=None, errors=None, error_summary=None):
Expand Down

0 comments on commit 45c6d0e

Please sign in to comment.