summaryrefslogtreecommitdiff
path: root/addons/web_editor/static/src/js/editor/summernote.js
diff options
context:
space:
mode:
authorAaron Bohy <aab@odoo.com>2018-02-08 11:28:45 +0100
committerAaron Bohy <aab@odoo.com>2018-02-09 15:36:14 +0100
commit20e4cd5bcd1816a478aedd441efa90a34cf63334 (patch)
treec303c24ee64876e97459c717c94cfe0b0e762133 /addons/web_editor/static/src/js/editor/summernote.js
parent4b43803dc6724339ea99ed43f0594afda6ea7068 (diff)
[FIX] web: field widget with readonly modifier
Rev. dbdd742 introduced the 'baseMode' parameter of field's nodes in the BasicRenderer. Its purpose is to encode the generic mode of the field, regardless of its readonly modifier (i.e. in form views, the baseMode of all fields is the mode of the renderer and in list views, the baseMode of all fields is 'readonly', except for fields in the row being edited, whose baseMode is 'edit'). Unfortunately, when the value of the readonly modifier of a field was 'readonly', its baseMode was changed from 'edit' to 'readonly', which shouldn't, as the baseMode's value should not be affected by the modifiers. This produced a bug when a field had a readonly modifier, as once its value became true, the field was rendered in 'readonly', and whatever the value of the modifier afterwards, it always remained in 'readonly'. The rev. ensures that the baseMode is no longer impacted by the value of the readonly modifier. Closes #22729
Diffstat (limited to 'addons/web_editor/static/src/js/editor/summernote.js')
0 files changed, 0 insertions, 0 deletions