Skip to content
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

[BUGFIX] Fix record overlay for 'List of selected items' (2369) #2474

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Idleworks
Copy link
Contributor

Fixes #2369

@@ -251,6 +251,9 @@ protected function createConstraintsFromDemand(QueryInterface $query, DemandInte
// Id list
$idList = $demand->getIdList();
if ($idList) {
$query->getQuerySettings()->setRespectStoragePage(false);
Copy link
Owner

Choose a reason for hiding this comment

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

this is not needed as already set in generateQuery()

@@ -251,6 +251,9 @@ protected function createConstraintsFromDemand(QueryInterface $query, DemandInte
// Id list
$idList = $demand->getIdList();
if ($idList) {
$query->getQuerySettings()->setRespectStoragePage(false);
$query->getQuerySettings()->setRespectSysLanguage(false);
Copy link
Owner

Choose a reason for hiding this comment

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

why not set $disableLanguageOverlayMode to true in the selectedListAction call?

@@ -251,6 +251,9 @@ protected function createConstraintsFromDemand(QueryInterface $query, DemandInte
// Id list
$idList = $demand->getIdList();
if ($idList) {
$query->getQuerySettings()->setRespectStoragePage(false);
$query->getQuerySettings()->setRespectSysLanguage(false);
$query->getQuerySettings()->setLanguageOverlayMode(true);
Copy link
Owner

Choose a reason for hiding this comment

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

I would also move that out of this important method which is used by all actions and make if configurable from the action. what do you think?

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

Successfully merging this pull request may close these issues.

The "List of selected items" view with "sort by" setting does not respect language overlay
2 participants