Subversion Repositories SmartDukaan

Rev

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

Rev 4663 Rev 4681
Line 331... Line 331...
331
                log.info("In order table id is : " + order.getCustomer_id());
331
                log.info("In order table id is : " + order.getCustomer_id());
332
                if (userId == null || userId.isEmpty() || order.getCustomer_id() != Long.parseLong(userId)) {
332
                if (userId == null || userId.isEmpty() || order.getCustomer_id() != Long.parseLong(userId)) {
333
                    throw new Exception("This order is not associated with this user Id");
333
                    throw new Exception("This order is not associated with this user Id");
334
                }
334
                }
335
            }
335
            }
-
 
336
            if(body!=null && !body.isEmpty()){
-
 
337
            	String plainTextbody = new Source(body).getTextExtractor().toString();
-
 
338
            	ticket.setDescription(description + " : " + plainTextbody);
-
 
339
            }
336
            
340
            
337
            if (userId != null && !userId.isEmpty()) {
341
            if (userId != null && !userId.isEmpty()) {
338
                ticket.setCustomerId(Long.parseLong(userId));
342
                ticket.setCustomerId(Long.parseLong(userId));
339
                activity.setCustomerId(Long.parseLong(userId));
343
                activity.setCustomerId(Long.parseLong(userId));
340
            } else {
344
            } else {