PKP Bugzilla – Bug 3999
Using "Select All" button in conjunction with export plugins produces error(s)
Last modified: 2009-02-04 15:46:01 PST
We are moving to Git Issues for bug tracking in future releases. During transition, content will be in both tools. If you'd like to file a new bug, please create an issue.
With the Crossref, Pubmed and Articles/Issues plugins:
-- If I choose to export issues; click "Select All"; and then click the Export button, I am not presented with an XML download but am returned to the Import/Export plugins page.
-- If I choose to export articles; click "Select All"; and then click the Export button, I receive the following error:
Fatal error: Call to a member function getSectionId() on a non-object in /Users/jmacgreg/Sites/stable/ojs-rel/classes/search/ArticleSearch.inc.php on line 255
This *only* happens when the Select All button is clicked. If I manually check each item to export (regardless of whether I'm checking an article or issue) the download works.
Heads-up courtesy of http://pkp.sfu.ca/support/forum/viewtopic.php?f=8&p=15313#p15313.
Created attachment 1397 [details]
Patch against OJS pre-2.2.3 CVS
Created attachment 1398 [details]
Patch against OCS pre-2.1.2 CVS
Bug is caused by a DB inconsistency with a single article, not by the use or otherwise of the "Select All" button; added a sanity check.