Subversion Repositories SmartDukaan

Rev

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

Rev 5182 Rev 5188
Line 148... Line 148...
148
		if(displayAccessories.equals("TRUE")){
148
		if(displayAccessories.equals("TRUE")){
149
			setMobile(true);
149
			setMobile(true);
150
		}
150
		}
151
		
151
		
152
		try {
152
		try {
153
			UserClient userServiceClient = new UserClient();
153
			if(userinfo.getUserId() != -1){
154
			Client client = userServiceClient.getClient();
-
 
155
			long itemId = Long.parseLong(id);
154
				long itemId = Long.parseLong(id);
156
			long userId = userinfo.getUserId();
155
				UserClient userServiceClient = new UserClient();
157
			if(userId != -1){
156
				Client client = userServiceClient.getClient();
158
				client.updateBrowseHistory(userId, itemId);
157
				client.updateBrowseHistory(userinfo.getUserId(), itemId);
159
			}
158
			}
160
		
159
		
161
		} catch (Exception e) {
160
		} catch (Exception e) {
162
			log.warn("Unable to update the browsing history because of: ", e);
161
			log.warn("Unable to update the browsing history because of: ", e);
163
		}
162
		}