Changeset 811


Ignore:
Timestamp:
02/19/11 21:20:59 (8 years ago)
Author:
gav
Message:

Domain change, adjust constraints on MaintenanceAction.

Location:
trunk/grails-app
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/domain/MaintenanceAction.groovy

    r809 r811  
    2525        section(nullable:true) 
    2626        asset(nullable:true) 
    27         assetSubItem(nullable:true) 
     27        assetSubItem() 
    2828        maintenancePolicy(nullable:true) 
    29         procedureStepNumber(nullable:true) 
     29        procedureStepNumber() 
    3030        description(blank:false,maxSize:100) 
    3131        pageRef(maxSize:25) 
  • trunk/grails-app/views/taskProcedureDetailed/_maintenanceAction.gsp

    r806 r811  
    22    <tr id="maintenanceActionLazyList${i}" class="ma-div" <g:if test="${ma?.toBeDeleted}">style="display:none;"</g:if>> 
    33 
    4         <td valign="top" class="${hasErrors(bean:tp,field:/maintenanceActionLazyList[$i].procedureStepNumber/,'errors')}"> 
     4        <td valign="top" class="${hasErrors(bean:ma,field:procedureStepNumber,'errors')}"> 
    55            <g:hiddenField name="maintenanceActionLazyList[${i}].toBeDeleted" value="${ma?.toBeDeleted}"/> 
    66            <g:hiddenField name='maintenanceActionLazyList[${i}].isNew' value="${ma?.id == null?'true':'false'}"/> 
     
    1515                                name="maintenanceActionLazyList[${i}].assetSubItem.id" 
    1616                                value="${ma?.assetSubItem?.id}" 
    17                                 noSelection="['null':/${g.message(code:'default.none.select.text')}/]"> 
     17                                noSelection="['null':/${g.message(code:'default.please.select.text')}/]"> 
    1818            </g:select> 
    1919        </td> 
Note: See TracChangeset for help on using the changeset viewer.