sergiogonzalez/liferay-portal — pull request #380 by KocsisDaniel (2012-10-02 11:03:59+00:00)
Title: [TECH SUPPORT] LPS-29304

Hi Sergio,

this pr is to fix the behavior of JournalArticle portlet when you set a past date as expiration date. Currently it silently skip these dates and put the value back to the default "never expire" so the customer thinks it worked fine however it doesn't change the field value. We elaborated the portal to find other places where the situation is similar but we found 3 different logic in 3 different places how to handle this. We decided to introduce a new validation and throw exception when the expire date is in the past.

The other solution we think about is to allow to save these values, because in this way the version will expire as well, but the date could hold some extra information for the customer, it acts like a log.

Thanks,
Daniel