svn commit: r1040796 - /ofbiz/trunk/applications/product/webapp/catalog/reviews/pendingReviews.ftl

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r1040796 - /ofbiz/trunk/applications/product/webapp/catalog/reviews/pendingReviews.ftl

doogie-3
Author: doogie
Date: Tue Nov 30 22:03:29 2010
New Revision: 1040796

URL: http://svn.apache.org/viewvc?rev=1040796&view=rev
Log:
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}'>