From 441f90d92ef15b31dacfffd8fa60de529852e4d2 Mon Sep 17 00:00:00 2001 From: nathan Date: Mon, 20 Nov 2023 11:03:28 -0700 Subject: [PATCH] Mail: Fix share as download link from filemanager gave JS error Unable to set field data to '[object Object]' in window 'compose_0__ Caused by accessing select_options through deprecated options object --- mail/js/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mail/js/app.js b/mail/js/app.js index 15c4fdb99f..3e674db9e2 100644 --- a/mail/js/app.js +++ b/mail/js/app.js @@ -1002,7 +1002,7 @@ app.classes.mail = AppJS.extend( if (content[field]['files'] && content[field]['files']['filemode'] && filemode && filemode.get_value() != content[field]['files']['filemode']) { - var filemode_label = filemode.options.select_options.filter(_item=>{return _item.value == content[field]['files']['filemode']})[0]['label']; + var filemode_label = filemode.select_options.filter(_item=>{return _item.value == content[field]['files']['filemode']})[0]['label']; Et2Dialog.show_dialog(function (_button) { if (_button == Et2Dialog.YES_BUTTON)