Hi
One of our journal editors has alerted us to a problem where the article publication date has reverted to today’s date on several issues (on first glance it looks like the last six issues but not the first few articles of the latest issue).
All of our sites were recently upgraded to OJS 3.1.1
Other sites don’t appear to be affected by this. Only this site:
https://ojs.aut.ac.nz/pacific-journalism-review/index
The issue may be related to this:
opened 03:47PM - 08 Mar 16 UTC
closed 02:34AM - 07 Apr 16 UTC
Article publication dates (that is: published_articles.date_published) appear to… be set incorrectly to "today" when scheduling an article for publication to an issue that has already been published. The article's publication date should be set to the issue's publication date (issue.date_publicatished) by default. The only time articles should receive a different publication date is if the article publication date is explicitly set.
Steps to replicate:
1) publish an issue.
2) wait a day (or set the issue's publication date to an earlier date).
3) schedule an article to that issue by choosing the issue under Scheduling and pressing the first "Record" button.
The article's publication date will be set to today. It should instead be set to the issue's publication date.
I believe this is a problem with the code here:
https://github.com/pkp/ojs/blob/ojs-stable-2_4_8/pages/sectionEditor/SubmissionEditHandler.inc.php#L2569
... possibly introduced here:
https://github.com/pkp/ojs/commit/ac6e287f83318c66b28f64e6316df283d8e378f3
... thought the code has changed somewhat since then.
Current workaround: individually set each published article's publication date.