[
https://issues.apache.org/jira/browse/TRINIDAD-1979?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Gabrielle Crawford updated TRINIDAD-1979:
-----------------------------------------
Resolution: Fixed
Fix Version/s: 2.0.0.4-core
Status: Resolved (was: Patch Available)
> Issue with client side DateRestrictionValidator
> ------------------------------------------------
>
> Key: TRINIDAD-1979
> URL: https://issues.apache.org/jira/browse/TRINIDAD-1979
> Project: MyFaces Trinidad
> Issue Type: Bug
> Environment: environment independent
> Reporter: Jing Wu
> Priority: Minor
> Fix For: 2.0.0.4-core
>
> Attachments: hint.patch
>
>
> Client side date restriction validator (TrDateRestrictionValidator) has an
> issue getting the hint. The hint is produced by function
> TrDateRestrictionValidator.prototype.getHints(), which
> (1) remove the disabled weekday values from the full weekday list
> (2) remove the disabled month values from the full month list
> (3) generate the final hint message
> (1) and (2) is achieved by calling
> TrCollections.removeValuesFromArray(Object, Object), but
> TrCollections.removeValuesFromArray(Object, Object) assumes that both
> arguments are of type Array, while the disabled weekday values and disabled
> month values are maps, so (1) and (2) are not performed correctly, thus the
> final hint message is wrong.
> We need to add a method in TrCollections to remove values in a map from the
> array and calls that method in
> TrDateRestrictionValidator.prototype.getHints().
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.