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

[Advanced search] The first criterion should never be deleted

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 4.0RC5
    • 4.0RC4
    • Plugin : Search
    • None

      How to reproduce

      • Open a search
      • Go to advanced search without selecting any criteria
        => The first criterion can be deleted. It should not

      If delete it and go back to simple search, there is a JS error

      AdvancedSearchFormPanel.js:457 Uncaught TypeError: Cannot read property 'items' of undefined
          at constructor._setRowValues (AdvancedSearchFormPanel.js:457)
          at constructor.<anonymous> (AdvancedSearchFormPanel.js:305)
          at Object.each (ext-all-debug.js:8002)
          at constructor._initSimpleValues (AdvancedSearchFormPanel.js:284)
          at constructor.initForm (AdvancedSearchFormPanel.js:255)
          at constructor.initAdvancedFromSimple (SearchTool.js:1545)
          at constructor._toggleAdvancedSearchMode (SearchTool.js:1765)
      

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

              Created:
              Updated:
              Resolved: