Skip to content

Commit

Permalink
[#1795] tolerate missing tag_string in package controller
Browse files Browse the repository at this point in the history
  • Loading branch information
wardi committed Jul 3, 2014
1 parent 4fb18b3 commit 511f2b5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ckan/controllers/package.py
Expand Up @@ -968,8 +968,9 @@ def _save_edit(self, name_or_id, context, package_type=None):
if '_ckan_phase' in data_dict:
# we allow partial updates to not destroy existing resources
context['allow_partial_update'] = True
data_dict['tags'] = self._tag_string_to_list(
data_dict['tag_string'])
if 'tag_string' in data_dict:
data_dict['tags'] = self._tag_string_to_list(
data_dict['tag_string'])
del data_dict['_ckan_phase']
del data_dict['save']
context['message'] = data_dict.get('log_message', '')
Expand Down

0 comments on commit 511f2b5

Please sign in to comment.