Skip to content

Commit

Permalink
Merge pull request #4265 from tino097/4262-fix-upload-logo
Browse files Browse the repository at this point in the history
Upload logo fix
  • Loading branch information
amercader committed May 25, 2018
2 parents 4e018d9 + f8a8d74 commit f6af3c6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ckan/views/admin.py
Expand Up @@ -110,11 +110,14 @@ def get(self):

def post(self):
try:
req = request.form.copy()
req.update(request.files.to_dict())
data_dict = logic.clean_dict(
dict_fns.unflatten(
logic.tuplize_dict(
logic.parse_params(
request.form, ignore_keys=CACHE_PARAMETERS))))
req, ignore_keys=CACHE_PARAMETERS))))

del data_dict['save']
data = logic.get_action(u'config_option_update')({
u'user': g.user
Expand Down

0 comments on commit f6af3c6

Please sign in to comment.