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
This commit is contained in:
nathan 2023-11-20 11:03:28 -07:00
parent cb0f0f8063
commit 52245308c9

View File

@ -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)