Skip to content

Commit

Permalink
fix: return the newly created package dict, not the data dict from ch…
Browse files Browse the repository at this point in the history
…ained create action

Not sure if this would have had any real impact up to now nor whether we should patch it in 2.9 as well, but in 2.10 not returning the right dict here causes an error in the new signals stuff.
  • Loading branch information
jrdh committed Sep 20, 2023
1 parent 982be39 commit f5228e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ckanext/attribution/logic/actions/create.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,4 +87,4 @@ def package_create(next_func, context, data_dict):
parse_contributors(context, created_pkg)

data_dict['author'] = get_author_string(package_id=created_pkg['id'])
return data_dict
return created_pkg

0 comments on commit f5228e9

Please sign in to comment.