-
-
Notifications
You must be signed in to change notification settings - Fork 824
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
Allow for the deselection of sorting filters #15029
Allow for the deselection of sorting filters #15029
Conversation
Can one of the admins verify this patch? |
(Standard links)
|
add to whitelist |
@reecebenson that's for the PR - we'll see if we can get someone to give it a quick r-run & then it will be mergeable - I don't see any technical issue with the approach / your conclusions Is this your first PR to CiviCRM? If so we'll need a second PR from you .... - adding you to our contributors file - https://github.com/civicrm/civicrm-core/blob/master/contributor-key.yml |
It is indeed! I've submitted a previous PR but it was closed and someone else came up with an alternative (better) solution. I've done a second PR to add myself to the contributors here. |
Ah you should really have been added as a contributor for the closed PR too as you did contribute even if an alternate was merged - but we have to pick that sort of thing up manually |
I did a run. Of course I didn't look at the screenshot at first, so just noting for other people like me that this is referring to clicking on the triangle to the left of the dropdown item, as opposed to changing the dropdown item to
So I think the PR is partly fixing the problem but not fully, and at least now it's showing a separate problem which was hidden before, i.e. that the hideRow function is incomplete in some way. I haven't tested but just looking at the dropdown I think instead of .val('') it needs to be .val('-'); |
Hi @demeritcowboy, I was able to reproduce the same, but believe this disappears once using the value of "-" as you've suggested. I've updated the PR to reflect, would you mind testing again? Cheers, |
Looks good. Thanks @reecebenson |
Merging based on @demeritcowboy review |
Overview
Unable to remove sorting filters on reports, "removing" them and refreshing the results would retain the sorting filters regardless.
Steps to Reproduce
Before
The IDs of the Column and Order elements did not reflect the same element IDs used to reset the values.
After
The IDs of the Column and Order elements now reflect the same element IDs used to reset the values. Successfully able to remove sorting filters.
Technical Details
Fixes incorrect element IDs used in JavaScript.