Uploaded image for project: 'CMS'
  1. CMS
  2. CMS-4721

An error ocur when it refreshes the resource explorer panel after rename a file

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 3.9
    • 3.9
    • None
    • Chrome

      How to reproduce :

      • select a document of the resources explorer,
      • clic on Rename File button
      • the next error appears : A component had an exception during the process of a message from the bus
      TypeError: Cannot read property 'length' of undefined
      TypeError: Cannot read property 'length' of undefined
      at Ext.define._isOnTree (http://localhost:8101/cms/plugins/cms/resources/js/Ametys/plugins/cms/explorer/SimpleResourcesExplorerTool.i18n.js:383:30)
      at Ext.define._onResourceEdited (http://localhost:8101/cms/plugins/cms/resources/js/Ametys/plugins/cms/explorer/SimpleResourcesExplorerTool.i18n.js:515:14)
      at Ext.define.fire (http://localhost:8101/cms/resources/js/Ametys/message/MessageBus.i18n.js:145:14)
      at http://localhost:8101/cms/plugins/extjs4/resources/js/ext-all-debug.js:2088:27

      Firebug logs

      2013-09-10T10:31:08.122+02:00 ERROR [Ametys.message.MessageBus] Un composant a rencontré une exception lors du traitement d'un message du bus (TypeError: rootIds is undefined) ._isOnTree@http://localhost:8101/cms/plugins/cms/resources/js/Ametys/plugins/cms/explorer/SimpleResourcesExplorerTool.i18n.js:383 ._onResourceEdited@http://localhost:8101/cms/plugins/cms/resources/js/Ametys/plugins/cms/explorer/SimpleResourcesExplorerTool.i18n.js:515 .fire@http://localhost:8101/cms/resources/js/Ametys/message/MessageBus.i18n.js:145 Ext.Function.bind/<@http://localhost:8101/cms/plugins/extjs4/resources/js/ext-all-debug.js:2088
      anonymous()Messag...i18n.js (ligne 153)
      anonymous()ext-all-debug.js (ligne 2088)
      	
      category: "Ametys.message.MessageBus"
      
      Messag...i18n.js (ligne 153)
      TypeError: rootIds is undefined
      	
      for (var i = 0; i < rootIds.length; i++)

            laurence Laurence Aumeunier
            llopez Laure Lopez
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: