← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 16010: Fixed bug - The messages of program and events don't display in Messages tab of TEI Dashboard.

 

------------------------------------------------------------
revno: 16010
committer: Tran Chau <tran.hispvietnam@xxxxxxxxx>
branch nick: dhis2
timestamp: Tue 2014-07-08 13:38:53 +0800
message:
  Fixed bug - The messages of program and events don't display in Messages tab of TEI Dashboard.
modified:
  dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/eventMessage.vm


--
lp:dhis2
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk

Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription
=== modified file 'dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/eventMessage.vm'
--- dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/eventMessage.vm	2014-06-12 07:02:29 +0000
+++ dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/eventMessage.vm	2014-07-08 05:38:53 +0000
@@ -19,16 +19,16 @@
 	</thead>
 	<tbody id='commentReportTB' name="messageTB">
 		#set( $mark = false )
-		#if($programInstance.comment)
+		#foreach($comment in $programInstance.comments)
 			<tr id="comment_$comment.id" #alternate( $mark )>
-				<td>$format.formatDateTime($programInstance.comment.createdDate)</td>
+				<td>$format.formatDateTime($comment.createdDate)</td>
 				<td>$i18n.getString('all')</td>
-				<td>$programInstance.comment.creator</td>
+				<td>$comment.creator</td>
 				<td>$i18n.getString('comment')</td>
 				<td></td>
-				<td>$programInstance.comment.commentText</td>
+				<td>$comment.commentText</td>
 				<td>
-					<a href="javascript:removeComment( '$programInstance.id', '$programInstance.comment.id' )" title="$i18n.getString( 'remove' )"><img src="../images/delete.png" alt="$i18n.getString( 'remove' )"></a>
+					<a href="javascript:removeComment( '$programInstance.id', '$comment.id' )" title="$i18n.getString( 'remove' )"><img src="../images/delete.png" alt="$i18n.getString( 'remove' )"></a>
 				</td>
 			</tr>
 		#end
@@ -62,14 +62,14 @@
 		#end
 		
 		#foreach($programStageInstance in $programStageInstances)
-			#if( $programStageInstance.comment )
+			#foreach( $comment in $programStageInstance.comments )
 				<tr id="comment_$comment.id" #alternate( $mark )>
-					<td>$format.formatDateTime($programStageInstance.comment.createdDate)</td>
+					<td>$format.formatDateTime($comment.createdDate)</td>
 					<td>$programStageInstance.programStage.displayName</td>
-					<td>$programStageInstance.comment.creator</td>
+					<td>$comment.creator</td>
 					<td>$i18n.getString('comment')</td>
 					<td></td>
-					<td>$programStageInstance.comment.commentText</td>
+					<td>$comment.commentText</td>
 					<td>
 						<a href="javascript:removeComment( '$programStageInstance.id', '$comment.id' )" title="$i18n.getString( 'remove' )"><img src="../images/delete.png" alt="$i18n.getString( 'remove' )"></a>
 					</td>