summaryrefslogtreecommitdiff
path: root/addons/web_editor/static/src/less/web_editor.backend.less
diff options
context:
space:
mode:
authorDuc Dao <31387997+novawish@users.noreply.github.com>2018-03-13 16:53:32 +0700
committerAdrian Torres <adt@odoo.com>2018-03-13 10:53:32 +0100
commit66c7e130d570b2711bdd9647a496c1bd76c292eb (patch)
treea7a633ef0558183c0f4573378c9c7bef8c8a24ac /addons/web_editor/static/src/less/web_editor.backend.less
parent84b6c46943f20b8dc77b390627fbfefa6a181327 (diff)
[FIX] base_setup: don't crash if template is empty
Before this commit: * Activate debug mode. * Go to general settings > Document Template. * Change the Template selection to the empty value. * Click on "Edit Header". Result: Traceback. This happens because we try to concatenate the value of the template field to a string, and since it's empty (False) boolean and str can't be implicitly concatenated, this of course raises an uncaught error. After this commit: * We check if a template has been selected before performing the concatenation. Closes #22736 Fixes #22622
Diffstat (limited to 'addons/web_editor/static/src/less/web_editor.backend.less')
0 files changed, 0 insertions, 0 deletions