Fix navigating through paths no longer possible for vfsSelect dialog

This commit is contained in:
Hadi Nategh 2022-07-12 11:02:42 +02:00
parent 11894b0868
commit 7f7b5282aa

View File

@ -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);