Details
-
Bug
-
Resolution: Outdated
-
Major
-
None
-
3.0.2
-
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.