Subversion Repositories SmartDukaan

Rev

Rev 1614 | Rev 1761 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1614 Rev 1623
Line 38... Line 38...
38
	//Handle /browse-history/{id}
38
	//Handle /browse-history/{id}
39
	public String create(){
39
	public String create(){
40
		log.info("list of item ids is " + this.request.getParameter("historyitems"));
40
		log.info("list of item ids is " + this.request.getParameter("historyitems"));
41
		if (this.request.getParameter("historyitems") != null) {
41
		if (this.request.getParameter("historyitems") != null) {
42
			String historyItems = this.request.getParameter("historyitems");
42
			String historyItems = this.request.getParameter("historyitems");
-
 
43
			if(userinfo.getUserId() != -1){
43
			updateHistory(historyItems);
44
				updateHistory(historyItems);
-
 
45
			}
44
		}
46
		}
45
		return "success";
47
		return "success";
46
	}
48
	}
47
 
49
 
48
    public String getSnippets() throws Exception {
50
    public String getSnippets() throws Exception {