Ignore:
Timestamp:
Jun 3, 2010, 4:31:44 AM (14 years ago)
Author:
gav
Message:

Improvements to inventory text search, add inventoryGroup and hide Limit Search unless one of the values is true.

File:
1 edited

Legend:

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

    r562 r566  
    148148                params.searchComment = session.inventoryItemSearchComment
    149149                params.searchLocation = session.inventoryItemSearchLocation
     150                params.searchGroup = session.inventoryItemSearchGroup
    150151                params.searchSpareFor = session.inventoryItemSearchSpareFor
    151152            }
     
    186187            session.removeAttribute("inventoryItemSearchComment")
    187188            session.removeAttribute("inventoryItemSearchLocation")
     189            session.removeAttribute("inventoryItemSearchGroup")
    188190            session.removeAttribute("inventoryItemSearchSpareFor")
    189191            session.removeAttribute("inventoryItemQuickSearch")
     
    203205            session.inventoryItemSearchComment = params.searchComment
    204206            session.inventoryItemSearchLocation = params.searchLocation
     207            session.inventoryItemSearchGroup = params.searchGroup
    205208            session.inventoryItemSearchSpareFor = params.searchSpareFor
    206209            // Clear any previous search.
     
    228231            session.removeAttribute("inventoryItemSearchComment")
    229232            session.removeAttribute("inventoryItemSearchLocation")
     233            session.removeAttribute("inventoryItemSearchGroup")
    230234            session.removeAttribute("inventoryItemSearchSpareFor")
    231235            session.removeAttribute("inventoryItemSearchFilterParams")
Note: See TracChangeset for help on using the changeset viewer.