Filter correctly obsolete entries in chain select component
-----------------------------------------------------------

                 Key: NXP-3910
                 URL: http://jira.nuxeo.org/browse/NXP-3910
             Project: Nuxeo Enterprise Platform
          Issue Type: Bug
            Reporter: Anahide Tchertchian
            Assignee: Thierry Delprat
             Fix For: 5.2.1


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;
            }

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.nuxeo.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        
_______________________________________________
ECM-tickets mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm-tickets

Reply via email to