Fix missing translation reported by Stefan Unverricht

This commit is contained in:
nathangray
2020-04-15 11:21:53 -06:00
parent aba5f61a42
commit dbb3b2688e
5 changed files with 23 additions and 23 deletions

View File

@ -154,13 +154,13 @@ var et2_customfields_list = /** @class */ (function (_super) {
if (!field.type)
field.type = 'text";';
var setup_function = '_setup_' + (apps[field.type] ? 'link_entry' : field.type.replace("-", "_"));
var attrs = {
var attrs = jQuery.extend({}, this.options[field_name] ? this.options[field_name] : {}, {
'id': id,
'statustext': field.help,
'needed': field.needed,
'readonly': this.getArrayMgr("readonlys").isReadOnly(id, null, this.options.readonly),
'value': this.options.value[et2_customfields_list.PREFIX + field_name]
};
});
// Can't have a required readonly, it will warn & be removed later, so avoid the warning
if (attrs.readonly === true)
delete attrs.needed;