manifoldcf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kishore Kumar (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CONNECTORS-1378) History reports end year resets to start year
Date Thu, 16 Feb 2017 15:54:41 GMT
Kishore Kumar created CONNECTORS-1378:
-----------------------------------------

             Summary: History reports end year resets to start year
                 Key: CONNECTORS-1378
                 URL: https://issues.apache.org/jira/browse/CONNECTORS-1378
             Project: ManifoldCF
          Issue Type: Bug
          Components: Framework core
    Affects Versions: ManifoldCF 2.6
            Reporter: Kishore Kumar
            Assignee: Kishore Kumar


Hi,

The end time *_year_* of all the four history reports resets to start time year. This is because
of a typo in the jsp page, where startYear is used instead of endYear.

{code:title=simplereport.jsp|borderStyle=solid}
<select class="schedulepulldown" name='reportendyear' size="3">
  <option value="" <%=(endYear.length()==0)?"selected=\"selected\"":""%>>-- <%=Messages.getBodyString(pageContext.getRequest().getLocale(),"simplereport.NotSpecified")%>
--</option>
  <% for(int year=2005; year <= java.util.Calendar.getInstance().get(java.util.Calendar.YEAR);
year++) {
      String selected = (startYear.equals(""+year))?"selected=\"selected\"":""; %>
  <option value="<%= year %>" <%= selected %>><%= year %></option>
  <% } %>
</select>
{code}

I will commit the fix in few minutes.




--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message