roller-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From snoopd...@apache.org
Subject svn commit: r581439 - /roller/branches/roller_3.1/src/org/apache/roller/ui/authoring/struts/actions/WeblogEntryFormAction.java
Date Wed, 03 Oct 2007 00:08:42 GMT
Author: snoopdave
Date: Tue Oct  2 17:08:37 2007
New Revision: 581439

URL: http://svn.apache.org/viewvc?rev=581439&view=rev
Log:
Fix for saving draft entries w/no pubtime

Modified:
    roller/branches/roller_3.1/src/org/apache/roller/ui/authoring/struts/actions/WeblogEntryFormAction.java

Modified: roller/branches/roller_3.1/src/org/apache/roller/ui/authoring/struts/actions/WeblogEntryFormAction.java
URL: http://svn.apache.org/viewvc/roller/branches/roller_3.1/src/org/apache/roller/ui/authoring/struts/actions/WeblogEntryFormAction.java?rev=581439&r1=581438&r2=581439&view=diff
==============================================================================
--- roller/branches/roller_3.1/src/org/apache/roller/ui/authoring/struts/actions/WeblogEntryFormAction.java
(original)
+++ roller/branches/roller_3.1/src/org/apache/roller/ui/authoring/struts/actions/WeblogEntryFormAction.java
Tue Oct  2 17:08:37 2007
@@ -329,7 +329,7 @@
                 
                 // If entry now published then index, flush and ping
                 Date now = new Date();
-                if (!entry.getPubTime().after(now) && entry.isPublished()) {    
               
+                if (entry.getPubTime() != null && !entry.getPubTime().after(now)
&& entry.isPublished()) {                    
                     reindexEntry(RollerFactory.getRoller(), entry);
                     CacheManager.invalidate(entry);
                     RollerFactory.getRoller().getAutopingManager().queueApplicableAutoPings(entry);



Mime
View raw message