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

An error ocur when I restores an old version of a document in the resources explorer

XMLWordPrintable

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

      How to reproduce :

      • in the resources explorer, upload many times the same document to generate various versions of it.
      • select this document and clic on history button in the ribbon
      • try to restore the first version of the document
        > the old document is well restored but un 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:24:05.882+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)	
      
      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: