Bugfix für den Kategorienfilter (Separator für mehrere Kategorien wurde nicht überall beachtet)

git-svn-id: https://svn.libreccm.org/ccm/trunk@2437 8810af33-2d31-482b-a856-94f89814c4df
master
jensp 2013-11-15 08:02:28 +00:00
parent 35647b1d2b
commit 98110662e7
3 changed files with 10 additions and 11 deletions

View File

@ -90,9 +90,7 @@ class ItemSearchCreateItemPane extends CMSContainer
private final NewItemForm m_newItem = new SectionNewItemForm("newItem"); private final NewItemForm m_newItem = new SectionNewItemForm("newItem");
// private final SingleSelectionModel m_model; // private final SingleSelectionModel m_model;
private SingleSelectionModel m_model; private SingleSelectionModel m_model;
private final FolderSelectionModel m_folderSel; // To support legacy UI code private final FolderSelectionModel m_folderSel;
// private FolderSelectionModel m_folderSel; // To support legacy UI code
// private final CreationSelector m_creator;
private CreationSelector m_creator; private CreationSelector m_creator;
private final FlatFolderPicker m_folderPicker = new FlatFolderPicker(FLAT_FOLDER); private final FlatFolderPicker m_folderPicker = new FlatFolderPicker(FLAT_FOLDER);

View File

@ -131,7 +131,6 @@ public abstract class AbstractTree extends CategoryComponent {
} }
s_log.debug("generating node XML for category " + cat.getName()); s_log.debug("generating node XML for category " + cat.getName());
// replace idPath list with one containing cat.id appended // replace idPath list with one containing cat.id appended

View File

@ -143,13 +143,15 @@ public class CategoryFilter {
if (multiple) { if (multiple) {
if ((values != null) && !values.isEmpty() && values.contains(category.getName())) { if ((values != null) && !values.isEmpty() && values.contains(category.getName())) {
elem.addAttribute("selected", "selected"); elem.addAttribute("selected", "selected");
if (searchString.length() > 0) { // if (searchString.length() > 0) {
searchString.append(' '); // searchString.append(separator);
} // }
searchString.append(category.getName()); searchString.append(category.getName());
searchString.append(separator);
} }
} else { } else {
if ((values != null) && !values.isEmpty() && values.contains(category.getID().toString())) { if ((values != null) && !values.isEmpty() && values.
contains(category.getID().toString())) {
elem.addAttribute("selected", "selected"); elem.addAttribute("selected", "selected");
} }
} }