Author: doogie
Date: Tue Nov 30 22:03:29 2010
New Revision: 1040796
URL:
http://svn.apache.org/viewvc?rev=1040796&view=revLog:
postedPerson can be null(because no userLogin was attached to the
review), so protect against its access. What would happen is when no
userLogin was available for the review, the table cell would not be
rendered, and the rest of the row cells would shift.
Modified:
ofbiz/trunk/applications/product/webapp/catalog/reviews/pendingReviews.ftl
Modified: ofbiz/trunk/applications/product/webapp/catalog/reviews/pendingReviews.ftl
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/product/webapp/catalog/reviews/pendingReviews.ftl?rev=1040796&r1=1040795&r2=1040796&view=diff==============================================================================
--- ofbiz/trunk/applications/product/webapp/catalog/reviews/pendingReviews.ftl (original)
+++ ofbiz/trunk/applications/product/webapp/catalog/reviews/pendingReviews.ftl Tue Nov 30 22:03:29 2010
@@ -71,12 +71,14 @@ under the License.
<input type="hidden" name="productReviewId_o_${rowCount}" value="${review.productReviewId}" />
${review.postedDateTime?if_exists}
</td>
+ <td>
<#if postedPerson?has_content>
<#if postedPerson.firstName?has_content && postedPerson.lastName?has_content>
- <td>${postedPerson.firstName} ${postedPerson.lastName}</td>
+ ${postedPerson.firstName} ${postedPerson.lastName}
<#else>
- <td>${postedPerson.groupName}</td>
+ ${postedPerson.groupName}
</#if>
+ </td>
</#if>
<td>
<select name='postedAnonymous_o_${rowCount}'>