Ignore:
Timestamp:
Apr 13, 2010, 1:11:10 PM (14 years ago)
Author:
gav
Message:

Default scheduled to true when creating a new Scheduled task.
Add applicable sorting and findAllByIsActive(true) to select lists in task views.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/views/taskDetailed/createImmediateCallout.gsp

    r431 r487  
    6363                                </td>
    6464                                <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'primaryAsset','errors')}">
    65                                     <g:select optionKey="id" from="${Asset.list()}" name="primaryAsset.id" value="${taskInstance?.primaryAsset?.id}" noSelection="['null':'--None--']"></g:select>
     65                                    <g:select optionKey="id"
     66                                                    from="${Asset.findAllByIsActive(true).sort { p1, p2 -> p1.name.compareToIgnoreCase(p2.name) }}"
     67                                                    name="primaryAsset.id" value="${taskInstance?.primaryAsset?.id}"
     68                                                    noSelection="['null':'--None--']">
     69                                    </g:select>
    6670                                    <g:helpBalloon code="task.primaryAsset" />
    6771                                </td>
     
    7478                                <td valign="top" class="value ${hasErrors(bean:entryFaultInstance,field:'productionReference','errors')}">
    7579                                    <g:select optionKey="id"
    76                                                         from="${ProductionReference.findAllByIsActive(true)}"
     80                                                        from="${ProductionReference.findAllByIsActive(true).sort { p1, p2 -> p1.name.compareToIgnoreCase(p2.name) }}"
    7781                                                        name="entryFault.productionReference.id"
    7882                                                        value="${entryFaultInstance?.productionReference?.id}"
Note: See TracChangeset for help on using the changeset viewer.