[ 
http://jira.magnolia-cms.com/browse/MSHOP-30?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jan Haderka updated MSHOP-30:
-----------------------------

    Description: 
The search term should be stored in the users session and be reused if no 
search term can be found in the query parameters. Here's a "patch" for 
ProductListTypeSearch:

{code}
    protected String getQueryStr() {
        String queryString = MgnlContext.getParameter("queryProductsStr");
        if (StringUtils.isBlank(queryString)) {
            queryString = (String) 
MgnlContext.getWebContext().getRequest().getSession(true).getAttribute(QUERY_STRING_SESSION_VAR_NAME);
        } else {
            
MgnlContext.getWebContext().getRequest().getSession(true).setAttribute(QUERY_STRING_SESSION_VAR_NAME,
 queryString);
        }
        return queryString;
    }
{code}

  was:
The search term should be stored in the users session and be reused if no 
search term can be found in the query parameters. Here's a "patch" for 
ProductListTypeSearch:


    protected String getQueryStr() {
        String queryString = MgnlContext.getParameter("queryProductsStr");
        if (StringUtils.isBlank(queryString)) {
            queryString = (String) 
MgnlContext.getWebContext().getRequest().getSession(true).getAttribute(QUERY_STRING_SESSION_VAR_NAME);
        } else {
            
MgnlContext.getWebContext().getRequest().getSession(true).setAttribute(QUERY_STRING_SESSION_VAR_NAME,
 queryString);
        }
        return queryString;
    }



> Adding a product to the shopping cart from the search result list clears the 
> list
> ---------------------------------------------------------------------------------
>
>                 Key: MSHOP-30
>                 URL: http://jira.magnolia-cms.com/browse/MSHOP-30
>             Project: Magnolia Shop
>          Issue Type: Bug
>            Reporter: Will Scheidegger
>            Assignee: Teresa Miyar
>            Priority: Major
>             Fix For: 1.1.1
>
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> The search term should be stored in the users session and be reused if no 
> search term can be found in the query parameters. Here's a "patch" for 
> ProductListTypeSearch:
> {code}
>     protected String getQueryStr() {
>         String queryString = MgnlContext.getParameter("queryProductsStr");
>         if (StringUtils.isBlank(queryString)) {
>             queryString = (String) 
> MgnlContext.getWebContext().getRequest().getSession(true).getAttribute(QUERY_STRING_SESSION_VAR_NAME);
>         } else {
>             
> MgnlContext.getWebContext().getRequest().getSession(true).setAttribute(QUERY_STRING_SESSION_VAR_NAME,
>  queryString);
>         }
>         return queryString;
>     }
> {code}

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.magnolia-cms.com/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


----------------------------------------------------------------
For list details, see: http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to