-
Notifications
You must be signed in to change notification settings - Fork 484
Fix: Search Not Working for 'Name' Column in Admin Standard License Comments #3008
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
Conversation
@sakshammishra112 : thank you for your contributions can you check the same issue in acknowledgement page and also in compatibility rules page ?? Please fix it there as well. |
DescriptionIn the Admin Standard License Comments section, sorting of name column was not working.This issue occurred because of the same reason as why searching was not working.This fix solves both the searching and sorting functionality for both searching and sorting of the name column. Changes
Before Modification:sortingNotWorking.webmAfter Modification:sortingFix.webmHow to test:
|
I have fixed the sorting issue that i discussed earlier with you on Slack. Also, could you please guide me or provide the link to the acknowledgment and compatibility page? I can't seem to find it. |
you could find them here admin > acknowledgments and admin > compatibility rules |
@sakshammishra112 : We only accept one commit per PR and functionality can you please squash the commit message to one ? |
@sakshammishra112 , Any updates on acknowledgement and compatibilty rules???? |
07909cd
to
aaa1923
Compare
I have fixed the same issue for acknowledgement page. And compatibility rules page works fine |
Cool, Will test :) |
@Kaushl2208 |
DCO Signing off GitHub Commits, Take a look into this :), Also dont forget to squash! |
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.
Changes looks good. Tested. Working as expected for License Acknowledgements, Standard Comments.
Can be merged once the DCO check passes
Signed-off-by: Saksham Mishra <[email protected]>
681b9e7
to
effe181
Compare
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.
Reviewed-By: @Kaushl2208
Tested-By @Kaushl2208
Description
In the Admin Standard License Comments section, searching by the 'Name' column was not functioning correctly. The search only worked for the Comment column but ignored the Name input field. This issue occurred because DataTables was trying to search using the full HTML string of the input field instead of its actual value.The column is easily searchable because it is
<textarea>
.This fix ensures that when a search is performed, DataTables extracts the value of the input field inside the Name column instead of the raw HTML, allowing proper filtering.
Changes
render
function to ensure searching works by returning the input field value instead of its HTML content.Changes Reflected
Screencast.from.2025-03-16.03-23-27.webm
How to test
Closes
Fixes issue [#3006 ] – "Search by Name Not Working in Admin Standard License Comments"