From 1dbeaddeae7d35ea367ceb4a033e97c0e1924f33 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thibault=20Delavall=C3=A9e?= Date: Fri, 13 Sep 2019 08:45:07 +0000 Subject: [PATCH] [FIX] website_profile: fix another broken image thingy As image fields have been renamed recently [1] we have to update controllers of profile in order to write on image_1920, not image anymore. Task 2067872 (eLearning internal testing) Task 2058598 (survey internal testing) PR #36756 [1] See 58a2ffa26f1a3b0f9630ce16d11b758d18e20a21 --- addons/website_profile/controllers/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/website_profile/controllers/main.py b/addons/website_profile/controllers/main.py index e11d68fa835..aaae098513b 100644 --- a/addons/website_profile/controllers/main.py +++ b/addons/website_profile/controllers/main.py @@ -137,10 +137,10 @@ class WebsiteProfile(http.Controller): } if 'clear_image' in kwargs: - values['image'] = False + values['image_1920'] = False elif kwargs.get('ufile'): image = kwargs.get('ufile').read() - values['image'] = base64.b64encode(image) + values['image_1920'] = base64.b64encode(image) if request.uid == user.id: # the controller allows to edit only its own privacy settings; use partner management for other cases values['website_published'] = kwargs.get('website_published') == 'True'