Scarab commit: svn commit: r11100 - branches/release/1.0.22/src/webapp/WEB-INF/templates/viewIssue/ViewIssueTab5.vm
[email protected] Thu, 12 Apr 2012 09:14:14 -0700 (PDT)
| Newsgroups | gmane.comp.java.scarab.cvs |
|---|---|
| Message-ID | <[email protected]> |
Author: mcoss
Date: 2012-04-12 09:14:14-0700
New Revision: 11100
Modified:
branches/release/1.0.22/src/webapp/WEB-INF/templates/viewIssue/ViewIssueTab5.vm
Log:
FIX - Use list size of activities to check length of history directly. Don't use buggy api methods.
Modified: branches/release/1.0.22/src/webapp/WEB-INF/templates/viewIssue/ViewIssueTab5.vm
Url: http://scarab.tigris.org/source/browse/scarab/branches/release/1.0.22/src/webapp/WEB-INF/templates/viewIssue/ViewIssueTab5.vm?view=diff&pathrev=11100&r1=11099&r2=11100
==============================================================================
--- branches/release/1.0.22/src/webapp/WEB-INF/templates/viewIssue/ViewIssueTab5.vm (original)
+++ branches/release/1.0.22/src/webapp/WEB-INF/templates/viewIssue/ViewIssueTab5.vm 2012-04-12 09:14:14-0700
@@ -1,4 +1,5 @@
#set ($allActivitySets = $scarabG.reverse($currentIssue.activitySets))
+#set ($sizeOfHistory = $currentIssue.activitySets.size())
#if (!$fullHistory.equals("true"))
#set ($allActivitySets = $scarabG.subset($allActivitySets, 0, $currentIssue.HistoryLimit))
#end
@@ -43,7 +44,7 @@
</div>
#end
-#if ($currentIssue.isHistoryLong())
+#if ($sizeOfHistory > 5)
<div class="functnbar3">
#if ($fullHistory.equals("true"))
#set ($historyLink = $link.setPage("$template").addPathInfo("id", $currentIssueId).addPathInfo("fullhistory", "false").addPathInfo("tab", "5"))
------------------------------------------------------
http://scarab.tigris.org/ds/viewMessage.do?dsForumId=3577&dsMessageId=2947782