Changeset 647 for trunk/grails-app
- Timestamp:
- Sep 6, 2010, 4:07:45 AM (14 years ago)
- Location:
- trunk/grails-app
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/controllers/InventoryItemDetailedController.groovy
r646 r647 576 576 def suppliers = Supplier.findAllByIsActive(true).sort { p1, p2 -> p1.name.compareToIgnoreCase(p2.name) } 577 577 def inventoryGroups = InventoryGroup.findAllByIsActive(true) 578 if(!params.selectedGroups) 579 params.selectedGroups = inventoryGroups.collect{it.id} 578 579 if(params.selectedGroups) { 580 if(params.selectedGroups instanceof String) 581 params.selectedGroups = [params.selectedGroups.toLong()] 582 else 583 params.selectedGroups = params.selectedGroups.collect { it.toLong() } 584 } 580 585 else 581 params.selectedGroups = params.selectedGroups.collect { it.toLong() }586 params.selectedGroups = [] 582 587 583 588 // Restore search unless a new search is being requested. -
trunk/grails-app/views/inventoryItemDetailed/reorder.gsp
r646 r647 39 39 optionKey="id" 40 40 sortBy="name" 41 height=" 80px"/>41 height="120px"/> 42 42 </td> 43 43 </tr>
Note: See TracChangeset
for help on using the changeset viewer.