Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-3910

Filter correctly obsolete entries in chain select component

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.3 RC, 5.3 GA
    • Component/s: None

      Description

      The method List<DirectorySelectItem> getSelectItems( VocabularyEntryList directoryValues, Map<String, Serializable> filter) in DirectoryHelper.java does not filter correctly obsolete entries.

      This method is used when using the nxu:chainSelectListbox tag, attribute directoryValues instead of directoryName.

      Here is the patch:
      Integer obsoleteInteger = (Integer) filter.get("obsolete");
      Boolean obsolete = obsoleteInteger != null && 1 == obsoleteInteger;

      if (obsolete != null && !obsolete.equals(entry.getObsolete()))

      { continue; }

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 2 hours
                  2h
                  Remaining:
                  Remaining Estimate - 2 hours
                  2h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified