diff options
| author | Pierre Paridans <app@odoo.com> | 2020-07-02 14:20:12 +0000 |
|---|---|---|
| committer | Pierre Paridans <app@odoo.com> | 2020-07-03 15:54:08 +0000 |
| commit | c9ba9dc94b7b75711bf65526205adbb2cb6e322a (patch) | |
| tree | 994397aedf641c8a0524b750bb60ca2c0b0455db /addons/web/static/src/js/fields/basic_fields.js | |
| parent | eba83eddd4f5352dd721bb8f046714ee937a3aab (diff) | |
[FIX] web: TempusDominus unsafe access to config
During TempusDominus autobinding to fields matching its default classes
(like `.datetimepicker-input` used by our DatePicker widget) and no
config was previously provided to the library (like when we disable it
on mobile), an unsafe access to the config's `_options` property results
into an error as the config is `undefined`.
This commit fixes it by first checking for config existence before
attempting to access its property.
Note: as this is a fix inside a library, a comment is added to make
clear. Also similar fixes where already done in the same file.
opw-2242880
X-original-commit: fe1f7c3e361bbd249b4025a464c546f478b6e989
Diffstat (limited to 'addons/web/static/src/js/fields/basic_fields.js')
0 files changed, 0 insertions, 0 deletions
