OJS3.3.0-6 Back issue operations error

Please see picture:


error

here i use edit as an example, but all other function returns same error.

i noticed the link calling is
https://xx.com/xxx/$$$call$$$/grid/issues/back-issue-grid/edit-issue?issueId=1

which ofc returns a null value:
{“status”:false,“content”:“Invalid issue requested!”,“elementId”:“0”,“events”:null}

the issue actual id is 8125
https://xxx.com/xx/$$$call$$$/grid/issues/back-issue-grid/edit-issue?issueId=8125

this gives:

{“status”:true,“content”:“<script type="text/javascript">\n\t// Attach the JS file tab handler.\n\t$(function() {\n\t\t$(‘#editIssueTabs’).pkpHandler(‘$.pkp.controllers.TabHandler’);\n\t});\n</script>\n<div id="editIssueTabs">\n\t

    \n\t\t
  • <a href="https://xxx.com/xx/$$$call$$$/grid/issues/back-issue-grid/issue-toc?issueId=8125">Table of Contents</a></li>\n\t\t
  • <a href="https://xxx.com/zt/$$$call$$$/grid/issues/back-issue-grid/edit-issue-data?issueId=8125">Issue Data</a></li>\n\t\t
  • <a href="https://xxx.com/zt/$$$call$$$/grid/issues/back-issue-grid/issue-galleys?issueId=8125">Issue Galleys</a></li>\n\t\t\t\t\t<li id="identifiersTab"><a href="https://xxx.com/xx/$$$call$$$/grid/issues/back-issue-grid/identifiers?issueId=8125">Identifiers</a></li>\n\t\t\t\t\t\t\t
  • <a href="https://xxx.com/xx/$$$call$$$/grid/issues/back-issue-grid/access?issueId=8125">Access</a></li>\n\t\t\t</ul>\n</div>\n”,“elementId”:“0”,“events”:null}

    So i assume in the UI buttons the issue value did not get correctly past.

    Can anyone advise what i should modify to get it work?

    I have done two modification not sure if they are related to the current error:

Current thinking is:

because of changing

protected function loadData($request, $filter) {

from return $issueDao->getPublishedIssues($journal->getId());
to return $issueDao->getPublishedIssues($journal->getId())->toArray();
}

Where the loadData returns now an array instead of ID, that is why the above grid think the issue id is 1?

What code i could change regarding this?

Hi @mapress888,

It looks like you’re right about it being related to the loadData function in BackIssueGridHandler. Later functions expect the issue ID to be included as part of an associative array.

Try changing

return $issueDao->getPublishedIssues($journal->getId())->toArray();

to

$issueDao->getPublishedIssues($journal->getId())->toAssociativeArray();

Hope that helps!

Best,

Erik
PKP Team

@ewhanson it works! thank you very much. I have another problem with XML exporter, i will open a new post.