• Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 3.5
    • None
    • None
    • None

      In 3.4.x, setting a filter does open all the tree nodes
      In 3.5 it does not (bug ?) so when opening a node, it clear the filter for the whole tree

          [CMS-4261] Resources explorer filter

          The directories are not opened anymore

          Raphaël Franchet added a comment - The directories are not opened anymore

          Laurence Aumeunier added a comment - - edited

          Here this the patch to do to fix it BUT it works because "resource" is the name of shared and not shared root resources, which is bad

          Index: main/plugin-web/resources/js/org/ametys/web/helper/ExplorerTree.i18n.js
          ===================================================================
          --- main/plugin-web/resources/js/org/ametys/web/helper/ExplorerTree.i18n.js	(revision 19967)
          +++ main/plugin-web/resources/js/org/ametys/web/helper/ExplorerTree.i18n.js	(working copy)
          @@ -391,7 +391,7 @@
           					}
           				}
           
          -				var path = '/resources' + resources[j].getAttribute("path");
          +				var path = '//resources' + resources[j].getAttribute("path");
           				this.expandPath (path, 'name', this._filterBy.createDelegate(this, []));
           			}
           		}
          Index: main/plugin-web/resources/js/org/ametys/web/helper/ResourcesExplorerTree.i18n.js
          ===================================================================
          --- main/plugin-web/resources/js/org/ametys/web/helper/ResourcesExplorerTree.i18n.js	(revision 19967)
          +++ main/plugin-web/resources/js/org/ametys/web/helper/ResourcesExplorerTree.i18n.js	(working copy)
          @@ -42,7 +42,7 @@
           		this._rootIds = [];
           		
           		// never displayed tree root
          -		var dummyRootNode = new Ext.tree.TreeNode({id: 'dummy', text: "dummy"});
          +		var dummyRootNode = new Ext.tree.TreeNode({id: 'dummy', text: "dummy", name: ''});
           		dummyRootNode.reload = function()
           		{
           			this.eachChild(function (node) {
          
          

          Laurence Aumeunier added a comment - - edited Here this the patch to do to fix it BUT it works because "resource" is the name of shared and not shared root resources, which is bad Index: main/plugin-web/resources/js/org/ametys/web/helper/ExplorerTree.i18n.js =================================================================== --- main/plugin-web/resources/js/org/ametys/web/helper/ExplorerTree.i18n.js (revision 19967) +++ main/plugin-web/resources/js/org/ametys/web/helper/ExplorerTree.i18n.js (working copy) @@ -391,7 +391,7 @@ } } - var path = '/resources' + resources[j].getAttribute( "path" ); + var path = ' //resources' + resources[j].getAttribute( "path" ); this .expandPath (path, 'name' , this ._filterBy.createDelegate( this , [])); } } Index: main/plugin-web/resources/js/org/ametys/web/helper/ResourcesExplorerTree.i18n.js =================================================================== --- main/plugin-web/resources/js/org/ametys/web/helper/ResourcesExplorerTree.i18n.js (revision 19967) +++ main/plugin-web/resources/js/org/ametys/web/helper/ResourcesExplorerTree.i18n.js (working copy) @@ -42,7 +42,7 @@ this ._rootIds = []; // never displayed tree root - var dummyRootNode = new Ext.tree.TreeNode({id: 'dummy' , text: "dummy" }); + var dummyRootNode = new Ext.tree.TreeNode({id: 'dummy' , text: "dummy" , name: ''}); dummyRootNode.reload = function() { this .eachChild(function (node) {

          expandPath does not work anymore. Seems to be due to new "dummy" root node

          Laurence Aumeunier added a comment - expandPath does not work anymore. Seems to be due to new " dummy " root node

            cedric Cédric Damioli
            raphael Raphaël Franchet
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: