Changeset 488 for trunk/grails-app


Ignore:
Timestamp:
Apr 16, 2010, 1:25:05 PM (15 years ago)
Author:
gav
Message:

Replace nulling of session attributes with removeAttribute() in task controller.

File:
1 edited

Legend:

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

    r487 r488  
    9494            session.taskSearchFilterParams = new LinkedHashMap(filterParams)
    9595            session.taskSearchFilter = new LinkedHashMap(params.filter)
    96             session.taskSearchQuickSearch = null
     96            session.removeAttribute("taskSearchQuickSearch")
    9797        }
    9898        else {
     
    105105            filterParams.quickSearch = result.quickSearch
    106106            // Remember search.
    107             session.taskSearchFilterParams = null
    108             session.taskSearchFilter = null
     107            session.removeAttribute("taskSearchFilterParams")
     108            session.removeAttribute("taskSearchFilter")
    109109            session.taskSearchQuickSearch = result.quickSearch
    110110        }
     
    202202            session.taskSearchCalendarFilterParams = new LinkedHashMap(filterParams)
    203203            session.taskSearchCalendarFilter = new LinkedHashMap(params.filter)
    204             session.taskSearchCalendarQuickSearch = null
     204            session.removeAttribute("taskSearchCalendarQuickSearch")
    205205        }
    206206        else {
     
    212212            filterParams.quickSearch = result.quickSearch
    213213            // Remember search.
    214             session.taskSearchCalendarFilterParams = null
    215             session.taskSearchCalendarFilter = null
     214            session.removeAttribute("taskSearchCalendarFilterParams")
     215            session.removeAttribute("taskSearchCalendarFilter")
    216216            session.taskSearchCalendarQuickSearch = result.quickSearch
    217217        }
Note: See TracChangeset for help on using the changeset viewer.