Uploaded image for project: 'Magnolia'
  1. Magnolia
  2. MAGNOLIA-1723

Modified 'checkbox' lists dialog data of modified paragraph not appearing in the tree in servlet code of search by topics

    XMLWordPrintable

Details

    • Bug
    • Resolution: Outdated
    • Major
    • None
    • 3.0.2
    • admininterface, core, gui, templating
    • None
    • Solaris 10/Base Magnolia Setup

    Description

      I have created a new 'checkbox' option list in the paragraph module for a type of 'category' based on business specs. However, the checkbox data does not appear to the servlet query in 'Search by Topics' up after deselecting and reselecting the options.

      Steps to reproduce:

      1) Create a new paragraph with a couple options in the 'checkbox' list checked. (data appears in JCR explorer)
      2) Modify that paragraph and deselect all options.
      3) Modify the same paragraph and reselect the options you deselected in step 2.
      4) The sniplet below from Search by Topics (within the main loop) no longer picks up the options. More specifically, hm.isExist(node.getHandle()+"/resourceCategory") returns false, when the JCR explorer shows resourceCategory with the NodeData objects. The following sniplet is placed at the top of the main loop of Search by Topics. categoryMarsPicks is a custom attribute in the Search by Topic paragraph.

      if (categoryMarsPicks.equals("true")) {

      if (hm.isExist(node.getHandle()+"/resourceCategory")) {

      catHasMarsPicks = false;

      Content cat = hm.getContent(node.getHandle()+"/resourceCategory");
      Iterator catIt = cat.getNodeDataCollection().iterator();

      while (catIt.hasNext())

      { NodeData catNode = (NodeData) catIt.next(); if (catNode.getString().equals("MaRS Picks")) catHasMarsPicks = true; }

      if (!catHasMarsPicks) continue;

      } else

      { continue; }

      }

      I'm open to suggestions.

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              pbaerfuss Philipp Bärfuss
              tomek Thomas Madej
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Checklists

                  Bug DoR
                  Task DoD