Uploaded image for project: 'Runtime'
  1. Runtime
  2. RUNTIME-3216

Avoid JS error when trying to select a filtered node in a tree

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 4.1.17, 4.2.4, 4.3.0
    • None
    • None
    • None
    • 4.3 M2

      How to reproduce

      • Open sitemap tool
      • Open a page
      • In sitemap tool, use filter field and enter a word as that does NOT match the precede opened page's title
      • Clic on the precede opened page

      The tool try to select the page in the tree, but it is not visible because of active filter.
      This leads to the following error

       Error: Unknown record passed to BufferedRenderer#scrollTo
          at new Ext.Error (ext-all.js:2769)
          at Function.raise (ext-all.js:2834)
          at Object.Ext.raise (ext-all.js:2915)
          at constructor.scrollTo (ext-all.js:246610)
          at constructor.doEnsureVisible (ext-all.js:220871)
          at constructor.onLastExpanded (ext-all.js:270848)
          at Object.callback (ext-all.js:9591)
          at constructor.expander (ext-all.js:270779)
          at Object.callback (ext-all.js:9591)
          at constructor.expand (ext-all.js:122051)

      This error should be catched and loggued as warn.

      This type of error can also occur with a contents tree.

            tberge Thibaut Bergé (Inactive)
            laurence Laurence Aumeunier
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: