svn commit: r612533 - /ofbiz/trunk/applications/party/webapp/partymgr/visit/visitdetail.ftl

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

svn commit: r612533 - /ofbiz/trunk/applications/party/webapp/partymgr/visit/visitdetail.ftl

jonesde
Author: jonesde
Date: Wed Jan 16 10:14:19 2008
New Revision: 612533

URL: http://svn.apache.org/viewvc?rev=612533&view=rev
Log:
Fixed error when there are no service hits for a visit

Modified:
    ofbiz/trunk/applications/party/webapp/partymgr/visit/visitdetail.ftl

Modified: ofbiz/trunk/applications/party/webapp/partymgr/visit/visitdetail.ftl
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/party/webapp/partymgr/visit/visitdetail.ftl?rev=612533&r1=612532&r2=612533&view=diff
==============================================================================
--- ofbiz/trunk/applications/party/webapp/partymgr/visit/visitdetail.ftl (original)
+++ ofbiz/trunk/applications/party/webapp/partymgr/visit/visitdetail.ftl Wed Jan 16 10:14:19 2008
@@ -111,6 +111,7 @@
     </tr>
     <#-- set initial row color -->
     <#assign rowClass = "2">
+    <#if serverHits?has_content>
     <#list serverHits[lowIndex..highIndex-1] as hit>
       <#assign serverHitType = hit.getRelatedOne("ServerHitType")?if_exists>      
       <tr<#if rowClass == "1"> class="alternate-row"</#if>>
@@ -137,6 +138,11 @@
         <#assign rowClass = "2">
       </#if>
     </#list>
+    <#else/>
+      <tr class="header-row">
+        <td colspan="6">No Server Hits found for this Visit</td>
+      </tr>
+    </#if>
   </table>
 
   <#if serverHits?has_content>