Skip to content

Commit

Permalink
fix resource_type
Browse files Browse the repository at this point in the history
  • Loading branch information
fanjinfei committed Mar 3, 2017
1 parent d34e35c commit d830c32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ckan/controllers/package.py
Expand Up @@ -739,7 +739,7 @@ def new_resource(self, id, data=None, errors=None, error_summary=None):
get_action('resource_update')(context, data)
else:
get_action('resource_create')(context, data)
if data['resource_type']=='':
if not data['resource_type']:
h.flash_success(_('A related resource has been added'))
else:
h.flash_success(_('A resource has been added'))
Expand Down

0 comments on commit d830c32

Please sign in to comment.