From 9cd746f0b458413be76a33bd9db7377c573b86ee Mon Sep 17 00:00:00 2001 From: nathan Date: Thu, 31 Mar 2022 08:46:36 -0600 Subject: [PATCH] Fix missing nm filters --- api/js/etemplate/et2_extension_nextmatch.ts | 24 ++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/api/js/etemplate/et2_extension_nextmatch.ts b/api/js/etemplate/et2_extension_nextmatch.ts index ee493ef766..471550e1ec 100644 --- a/api/js/etemplate/et2_extension_nextmatch.ts +++ b/api/js/etemplate/et2_extension_nextmatch.ts @@ -2849,13 +2849,35 @@ export class et2_nextmatch extends et2_DOMWidget implements et2_IResizeable, et2 { // Call all availble setters this.initAttributes(this.options); - + let childPromises = []; + let loadChildren = () => + { + // Descend recursively into the tree + for(var i = 0; i < this._children.length; i++) + { + try + { + this._children[i].loadingFinished(childPromises); + } + catch(e) + { + egw.debug("error", "There was an error with a widget:\nError:%o\nProblem widget:%o", e.valueOf(), this._children[i], e.stack); + } + } + }; var result = this.doLoadingFinished(); if(typeof result == "object" && result.then) { // Widget is waiting. Add to the list promises.push(result); + result.then(loadChildren); } + else + { + loadChildren() + } + + } // Input widget