Changeset 634 for trunk


Ignore:
Timestamp:
Jul 25, 2010, 9:32:12 AM (14 years ago)
Author:
gav
Message:

Small fix to inventory search so that limit search selects work with pagination.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/controllers/InventoryItemDetailedController.groovy

    r615 r634  
    193193        }
    194194        else if(params.searchText) {
    195             // Quick Search Text:
     195            // Text Search:
    196196            def result = inventoryItemSearchService.getTextSearch(params, RCU.getLocale(request))
    197197            inventoryItemInstanceList = result.inventoryItemList
     
    199199            params.message = result.message
    200200            filterParams.searchText = result.searchText
     201            // Place limit search selects in filterParams for pagination.
     202            if(params.searchName)
     203                filterParams.searchName = params.searchName
     204            if(params.searchDescription)
     205                filterParams.searchDescription = params.searchDescription
     206            if(params.searchComment)
     207                filterParams.searchComment = params.searchComment
     208            if(params.searchLocation)
     209                filterParams.searchLocation = params.searchLocation
     210            if(params.searchGroup)
     211                filterParams.searchGroup = params.searchGroup
     212            if(params.searchSpareFor)
     213                filterParams.searchSpareFor = params.searchSpareFor
    201214            // Remember search.
    202215            session.inventoryItemSearchText = params.searchText
Note: See TracChangeset for help on using the changeset viewer.