Skip to content

Commit

Permalink
[#2501] package new resource pass pkg_name
Browse files Browse the repository at this point in the history
  • Loading branch information
tobes committed Jun 13, 2012
1 parent 6569069 commit e934ffc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ckan/controllers/package.py
Expand Up @@ -470,8 +470,7 @@ def new(self, data=None, errors=None, error_summary=None):

def new_resource(self, id):
''' FIXME: This is a temporary action to allow styling of the forms. '''
package_type = self._guess_package_type(True)
return render('package/new_resource.html')
return render('package/new_resource.html', extra_vars={'pkg_name':id})

def new_metadata(self, data=None, errors=None, error_summary=None):
''' FIXME: This is a temporary action to allow styling of the forms. '''
Expand Down

0 comments on commit e934ffc

Please sign in to comment.