[
http://jira.nuxeo.org/browse/NXP-3910?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Florent Guillaume reopened NXP-3910:
------------------------------------
Fix Version/s: 5.3 GA
Assignee: Florent Guillaume (was: Thierry Delprat)
Fix is incorrect, it should treat null and 0 the same (not obsolete).
> 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: Florent Guillaume
> Fix For: 5.3 GA, 5.3 RC
>
> Original Estimate: 2 hours
> Remaining Estimate: 2 hours
>
> 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