Skip to content

Commit

Permalink
[#1273] fix some more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kindly committed Nov 19, 2013
1 parent 0912849 commit 53d6a1f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ckan/logic/action/update.py
Expand Up @@ -228,12 +228,12 @@ def resource_update(context, data_dict):
context['defer_commit'] = True
context['use_cache'] = False
pkg_dict = _get_action('package_update')(context, pkg_dict)
context.pop('defer_commit')
except ValidationError, e:
errors = e.error_dict['resources'][n]
raise ValidationError(errors)

resource = pkg_dict['resources'][n]
upload.upload(resource['id'], uploader.get_max_resource_size())
upload.upload(id, uploader.get_max_resource_size())
model.repo.commit()
return _get_action('resource_show')(context, {'id': id})

Expand Down

0 comments on commit 53d6a1f

Please sign in to comment.