[JIRA] Closed: (OFBIZ-739) CustomTimePeriod crashes the form widget <drop-down>

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[JIRA] Closed: (OFBIZ-739) CustomTimePeriod crashes the form widget <drop-down>

JIRA jira@ofbiz.org
     [ http://jira.undersunconsulting.com/browse/OFBIZ-739?page=all ]
     
Marco Risaliti closed OFBIZ-739:
--------------------------------

    Resolution: Invalid

There is any reference to this form and probably it's simply an example of using form widget.
Leon tell me if it is not right.

> CustomTimePeriod crashes the form widget <drop-down>
> ----------------------------------------------------
>
>          Key: OFBIZ-739
>          URL: http://jira.undersunconsulting.com/browse/OFBIZ-739
>      Project: [OFBiz] Open For Business
>         Type: Bug
>   Components: common, widget
>     Versions: SVN
>     Reporter: Leon Torres
>     Assignee: Jira Administrator

>
>
> I created a <drop-down> for CustomTimePeriod and it crashes without a stack trace. However, it did complain that there was a class cast exception from Date. Investigating further, I found:
> o  setting <drop-down filter-by-date="false"> works around this problem
> o  setting the fromDate and thruDate of CustomTimePeriod to "date-time" instead of "date" also fixes the problem
> Shouldn't the filtering also handle a Date then?
> Here's the drop down for reference:
>         <field name="customTimePeriodId" title="This will crash" entity-name="CustomTimePeriod">
>             <drop-down allow-empty="false" current="selected">
>                 <entity-options description="${periodName} ${periodNum}">
>                     <entity-order-by field-name="periodNum"/>
>                 </entity-options>
>             </drop-down>
>         </field>

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