summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/basic/basic_controller.js
diff options
context:
space:
mode:
authorFelix <fxkopp@users.noreply.github.com>2017-04-27 10:21:39 +0200
committerChristophe Matthieu <chm@odoo.com>2017-05-08 13:41:51 +0200
commit20facf5cf93faad4c8f03304540103f19adb9a16 (patch)
tree3939164938d1a2095de7db3b123b98ec2a76b655 /addons/web/static/src/js/views/basic/basic_controller.js
parent9e870d9a0a25dc14b00f1fa74961c9bad29e1f00 (diff)
[FIX] web_calendar: prevent crash when the color field is undefined
Add a check for the presence of color field. (only applies when "useContacts" is not set) Before this fix, if the view xml does not set "useContacts", the calendar view fallback on the color attribute (not required) which may be non-existent on the model and on the view. web_calendar.js:799 is using "if (color_field.type == "selection")" so its throwing this error when color is not defined: Uncaught TypeError: Cannot read property 'type' of undefined
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_controller.js')
0 files changed, 0 insertions, 0 deletions