From 7f7b5282aa02bef84e2f8d431af215e9a21f9486 Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Tue, 12 Jul 2022 11:02:42 +0200 Subject: [PATCH] Fix navigating through paths no longer possible for vfsSelect dialog --- api/js/etemplate/vfsSelectUI.ts | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/api/js/etemplate/vfsSelectUI.ts b/api/js/etemplate/vfsSelectUI.ts index 2a35c0a4c4..64df53430a 100644 --- a/api/js/etemplate/vfsSelectUI.ts +++ b/api/js/etemplate/vfsSelectUI.ts @@ -250,12 +250,8 @@ export class vfsSelectUI extends EgwApp } else if (widget.value.is_dir) // true for "httpd/unix-directory" and "egw/*" { - let path = null; - // Cannot do this, there are multiple widgets named path - // widget.getRoot().getWidgetById("path"); - widget.getRoot().iterateOver(function(widget) { - if(widget.id == "path") path = widget; - },null, Et2Textbox); + let path = widget.getRoot().getWidgetById("path"); + if(path) { path.set_value(widget.value.path);