You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@roller.apache.org by ag...@apache.org on 2005/09/24 22:29:03 UTC

svn commit: r291332 - /incubator/roller/branches/roller_2.0/src/org/roller/presentation/weblog/actions/WeblogEntryFormAction.java

Author: agilliland
Date: Sat Sep 24 13:29:00 2005
New Revision: 291332

URL: http://svn.apache.org/viewcvs?rev=291332&view=rev
Log:
slight modification to simply force a weblog entry to have a title, but body can be empty.  having an empty title can't be allowed because we wouldn't have a way to get to that permalink.


Modified:
    incubator/roller/branches/roller_2.0/src/org/roller/presentation/weblog/actions/WeblogEntryFormAction.java

Modified: incubator/roller/branches/roller_2.0/src/org/roller/presentation/weblog/actions/WeblogEntryFormAction.java
URL: http://svn.apache.org/viewcvs/incubator/roller/branches/roller_2.0/src/org/roller/presentation/weblog/actions/WeblogEntryFormAction.java?rev=291332&r1=291331&r2=291332&view=diff
==============================================================================
--- incubator/roller/branches/roller_2.0/src/org/roller/presentation/weblog/actions/WeblogEntryFormAction.java (original)
+++ incubator/roller/branches/roller_2.0/src/org/roller/presentation/weblog/actions/WeblogEntryFormAction.java Sat Sep 24 13:29:00 2005
@@ -1052,8 +1052,7 @@
 
     public ActionErrors validateEntry(ActionErrors errors, WeblogEntryFormEx form) {
         if (errors == null) errors = new ActionErrors();
-        if (StringUtils.isEmpty(form.getTitle()) 
-            && StringUtils.isEmpty(form.getText())) {
+        if (StringUtils.isEmpty(form.getTitle())) {
             errors.add(null, new ActionError("weblogEdit.error.incompleteEntry"));
         }
         return errors;