sergiogonzalez/liferay-portal — pull request #421 by KocsisDaniel (2012-10-31 12:52:47+00:00)
Title: [TECH SUPPORT] LPS-30628

Hi Sergio,

a previous fix prevents to add journal articles with expiration date in the past, however it breaks the mass operations like import, copy because in this case we usually grab the already expired articles and re-add with the same dates which can be in the past. So the fix takes into account the import in-progress flag. Tamas started to use the thread local and I found we have a ServiceContext attribute for the same purpose, so to make it consistent I replaced the imported attribute with the thread local. I found several places in local services when we use threadlocal, but feel free to roll this back if you don't agree with the idea.

Thanks,
Daniel