From 9fb153bbcc8645e6117e9f3596e4009bfa18b01a Mon Sep 17 00:00:00 2001 From: ralf Date: Tue, 24 Jan 2023 14:31:01 +0100 Subject: [PATCH] fix historylog in calendar not shown caused by multi-attributes use a vbox, who's constructor unset the readonly attribute --> setting it again hard, as all widgets in historylog are r/o and without readonly select-boxes have no detached DOM interface --- api/js/etemplate/et2_widget_historylog.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/js/etemplate/et2_widget_historylog.ts b/api/js/etemplate/et2_widget_historylog.ts index 10f7e05f91..ba1723df54 100644 --- a/api/js/etemplate/et2_widget_historylog.ts +++ b/api/js/etemplate/et2_widget_historylog.ts @@ -435,7 +435,7 @@ export class et2_historylog extends et2_valueWidget implements et2_IDataProvider for(let i in field) { let type = field[i]; - const child_attrs = jQuery.extend({}, attrs); + const child_attrs = jQuery.extend({readonly: true}, attrs); if(typeof type === 'object') { child_attrs['select_options'] = cleanSelectOptions(field[i]);