Commit f623e4ab authored by kpandey's avatar kpandey

Solved issue added trim function in order to display courses for webinar-library

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@201727 ce508802-f39f-4f6c-b175-0d175dae99d5
parent bef17c76
...@@ -182,7 +182,8 @@ public class CourseDAO ...@@ -182,7 +182,8 @@ public class CourseDAO
{ {
JSONObject courseContentObj = new JSONObject(courseContent); JSONObject courseContentObj = new JSONObject(courseContent);
String contentName = courseContent.getContentName(); String contentName = courseContent.getContentName();
String docId = getDocId(courseContent.getAttachment(), tranDB); // DOC_ID String docId = getDocId(courseContent.getAttachment().trim(), tranDB); // DOC_ID
System.out.println("doc_id after trim==>"+docId);
String accessPos = "0"; String accessPos = "0";
if( !"O".equalsIgnoreCase(courseStatus) ) // User Attended Course if( !"O".equalsIgnoreCase(courseStatus) ) // User Attended Course
{ {
...@@ -271,7 +272,7 @@ public class CourseDAO ...@@ -271,7 +272,7 @@ public class CourseDAO
for( CourseContent courseContent : courseContentList ) for( CourseContent courseContent : courseContentList )
{ {
String docId = getDocId(courseContent.getAttachment(), tranDB); // DOC_ID String docId = getDocId(courseContent.getAttachment().trim(), tranDB); // DOC_ID
DocContents docContents = getDocContents(docId, tranDB); DocContents docContents = getDocContents(docId, tranDB);
if( docContents != null ) if( docContents != null )
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment