Skip to content

pkp/pkp-lib#11297 Update the code to retrieve discussions on the submission list the same way it's done at the submission page #11300

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: stable-3_3_0
Choose a base branch
from

Conversation

jonasraoni
Copy link
Contributor

No description provided.

…ist the same way it's done at the submission page
@jonasraoni jonasraoni force-pushed the bugfix-stable-3_3_0-11297-fix-discussion-counter branch from 7296516 to d6e88f6 Compare April 21, 2025 09:02
Copy link
Contributor

@bozana bozana left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @jonasraoni,
This looks good to me. I left just a few very minor questions, if you would like to address them :-)

$handler->getAuthorizedContextObject(ASSOC_TYPE_USER_ROLES)
);

$accessHelper = new QueriesAccessHelper($handler->getAuthorizedContext(), $request->getUser());
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can use $user instead of $request->getUser() here

@@ -413,13 +414,25 @@ public function getPropertyStages($submission, $stageIds = null) {
// Discussions in this stage
$stage['queries'] = array();
$request = Application::get()->getRequest();
$user = $request->getUser();
import('lib.pkp.controllers.grid.queries.QueriesAccessHelper');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe to move this line closer to the line with new QueriesAccessHelper() ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants