- Timestamp:
- Apr 16, 2010, 2:10:52 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/controllers/InventoryItemDetailedController.groovy
r485 r489 136 136 // Restore search unless a new search is being requested. 137 137 if(!params.quickSearch && !filterParams) { 138 if(session.inventoryItemQuickSearch) 138 if(session.inventoryItemQuickSearch) { 139 139 params.quickSearch = session.inventoryItemQuickSearch 140 if(session.inventoryItemQuickSearchDaysBack) 141 params.daysBack = session.inventoryItemQuickSearchDaysBack.toString() 142 } 140 143 else if(session.inventoryItemSearchFilterParams) { 141 144 session.inventoryItemSearchFilterParams.each() { params[it.key] = it.value } … … 163 166 session.inventoryItemSearchFilterParams = new LinkedHashMap(filterParams) 164 167 session.inventoryItemSearchFilter = new LinkedHashMap(params.filter) 165 session.inventoryItemQuickSearch = null 168 session.removeAttribute("inventoryItemQuickSearch") 169 session.removeAttribute("inventoryItemQuickSearchDaysBack") 166 170 } 167 171 else { … … 174 178 filterParams.quickSearch = result.quickSearch 175 179 // Remember search. 176 session. inventoryItemSearchFilterParams = null177 session. inventoryItemSearchFilter = null180 session.removeAttribute("inventoryItemSearchFilterParams") 181 session.removeAttribute("inventoryItemSearchFilter") 178 182 session.inventoryItemQuickSearch = result.quickSearch 183 if(result.daysBack) 184 session.inventoryItemQuickSearchDaysBack = result.daysBack 179 185 } 180 186
Note: See TracChangeset
for help on using the changeset viewer.