Bug 40483

Summary: Searching vendors by Alias no longer works
Product: Koha Reporter: Sara Brown <sbrown>
Component: AcquisitionsAssignee: Jonathan Druart <jonathan.druart>
Status: Needs Signoff --- QA Contact: Testopia <testopia>
Severity: normal    
Priority: P5 - low CC: jonathan.druart, matt.blenkinsop
Version: unspecifiedKeywords: regression, roadmap_25_05
Hardware: All   
OS: All   
See Also: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38010
GIT URL: Change sponsored?: ---
Patch complexity: --- Documentation contact:
Documentation submission: Text to go in the release notes:
Version(s) released in:
Circulation function:
Bug Depends on:    
Bug Blocks: 38201    
Attachments: Bug 40483: Restore search vendors by alias

Description Sara Brown 2025-07-23 17:40:45 UTC
In 25.05, searching for vendors by an alias no longer works. To replicate:
-Find an existing vendor, and add an Alias to their details
-Search using the alias from the main Acquisitions page - note that there are no results
-Search using the green 'Vendor search' bar - note that there are no results

Marking as a regression since searching using either of these methods works in 24.11.
Comment 1 Jonathan Druart 2025-07-24 08:03:39 UTC
Created attachment 184577 [details] [review]
Bug 40483: Restore search vendors by alias

Prior to bug 38010 we were able to search vendors by alias.

This patch restores it by moving the filter to kohaTable's "default_filters" to allow to pass a more complex condition

Test plan:
Create several vendors, some with aliases
Confirm that searching by alias return the vendors
Confirm that refining the search (using the table's global search) works
as expected