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: Will Scheidegger
            Priority: Major
             Fix For: 1.0.7, 1.1


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;
    }


-- 
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