[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 58a2ffa26f
This commit is contained in:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user