From bdc74303bb95b48d0b2c3d07647767492c1aded8 Mon Sep 17 00:00:00 2001 From: nathan Date: Mon, 25 Jul 2022 13:55:55 -0600 Subject: [PATCH] Fix multi-part history fields gave error during creation due to not recognising that it was multi-part "Uncaught TypeError: Cannot read properties of undefined" --- 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 79f2d100e4..5ad227ba13 100644 --- a/api/js/etemplate/et2_widget_historylog.ts +++ b/api/js/etemplate/et2_widget_historylog.ts @@ -449,7 +449,7 @@ export class et2_historylog extends et2_valueWidget implements et2_IDataProvider { // Require widget to be a widget, to avoid invalid widgets // (and template, which is a widget and an infolog todo status) - if(et2_registry[field[j]] && ['template'].indexOf(field[j]) < 0)// && (et2_registry[field[j]].prototype.instanceOf(et2_valueWidget)) + if(et2_registry[field[j]] && ['template'].indexOf(field[j]) < 0 || customElements.get(field[j]) || typeof field[j] == "object") { need_box = true; break;