-
-
Notifications
You must be signed in to change notification settings - Fork 529
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
Added remembering filter properties of deleted resources grid in browser url #15946
Conversation
@GulomovCreative @Ruslan-Aleev keep your comments in english, others might want to read them as well. |
if ($deleted = $this->getDeleted()) { | ||
$c->where(['modResource.id:IN' => $deleted]); | ||
} else { | ||
return; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
prepareQueryBeforeCount()
must always return the xPDOQuery
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And what kind of where to put here, so as not to return anything? Will this one work?
$c->where(['modResource.id' => 0]);
What does it do?
In the trash, it was possible to find an undeleted resource (any resource from the tree) through a search :)
The relationship between the deleted parent and the undeleted child resources will be a little clearer. Because many resources are not deleted but appear in the grid and will be deleted due to the parent being deleted.
Why is it needed?
Allow to copy/paste the state of the filter with the browser url.
Related issue(s)/PR(s)
#15942
#15935
#15186
#15185
#15184
#15183
#15182
#15181
#15115
#14086