roller-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dave Johnson (JIRA)" <j...@apache.org>
Subject [jira] Assigned: (ROL-1803) Comments.jsp
Date Sun, 24 May 2009 03:12:48 GMT

     [ https://issues.apache.org/jira/browse/ROL-1803?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Dave Johnson reassigned ROL-1803:
---------------------------------

    Assignee: Dave Johnson  (was: Roller Unassigned)

> Comments.jsp 
> -------------
>
>                 Key: ROL-1803
>                 URL: https://issues.apache.org/jira/browse/ROL-1803
>             Project: Roller
>          Issue Type: Bug
>    Affects Versions: 5.0
>            Reporter: Greg Huber
>            Assignee: Dave Johnson
>            Priority: Trivial
>
> hello,
> In comments.jsp there is a line #334 <s:if test="#comment.content.length > 1000">
this needs to be 
> <s:if test="#comment.content.length() > 1000"> for it to work, ie .length().
 The servlet will never get used!
> Also, possibly in CommentsBean/GlobalCommentsBean, to make more sense for the query:
>     public Date getEndDate() {
>         if(!StringUtils.isEmpty(getEndDateString())) 
>         try {
>             DateFormat df = new SimpleDateFormat("MM/dd/yy");
>             return df.parse(getEndDateString());
>         } catch(Exception e) { }
>         return null;
>     }
> needs to be:
>    public Date getEndDate() {
>         if(!StringUtils.isEmpty(getEndDateString())) 
>         try {
>             DateFormat df = new SimpleDateFormat("MM/dd/yy");
>             //return df.parse(getEndDateString());
>             return DateUtil.getEndOfDay(newDate); <<<<<<<<<<<<<<<<<
>         } catch(Exception e) { }
>         return null;
>     }
> Cheers Greg

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message