Details
-
Type:
Technical task
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 6.1.1 CE GA2, 6.1.20 EE GA2
-
Fix Version/s: 6.1.X EE, 6.2.0 CE M2
-
Component/s: WCM, WCM > Web Content Administration
-
Labels:
-
Branch Version/s:6.1.x
-
Backported to Branch:Committed
-
Business Value:3
-
Similar Issues:
Description
- go to web content edition page
- go to Schedule section
- uncheck "Never Auto-expire" checkbox
- set Expiration date to somewhere between Display Date and current date and time.
- Press Publish button
- Edit that web content again and go to Schedule section
Effect: "never Auto-expire" is still checked despite the fact that there was no warning window, no error message nor exception in console. There is nothing wrong in setting date from past but it seems Liferay decides for user what is good and what is wrong without telling him that. Also this behaviour is not documented anywhere so possibly this is a bug.

Juan is going to take a look at the logic in JournalArticleLocalServiceImpl:
if (status == WorkflowConstants.STATUS_APPROVED) {
Date expirationDate = article.getExpirationDate();
if ((expirationDate != null) && expirationDate.before(now))
{ neverExpire = true; article.setExpirationDate(null); }}