To recreate: 1 - Enable SearchWithISBNVariations and IntranetCatalogSearchPulldown 2 - Refresh page and click on 'Search the catalog' tab 3 - Search for 'ISBN' 0385299209 4 - Note no results 5 - Note the search says if searched 'kw,wrdl: (nb=)'
Created attachment 93829 [details] [review] Bug 23768: Return invalid ISBN when searching with variations To test: 1 - Enable SearchWithISBNVariations and IntranetCatalogSearchPulldown 2 - Refresh page and click on 'Search the catalog' tab 3 - Search for 'ISBN' 0385299209 4 - Note no results 5 - Note the search says if searched 'kw,wrdl: (nb=)' 6 - Apply patch, restart all the things 7 - Repeat search 8 - Search looks correctly formed 9 - Add the isbn above to a record, confirm it is returned by search 10 - Confirm searches for valid ISBNs still work as expected
Could we have a regression test for this one?
Created attachment 94963 [details] [review] Bug 23768: Return invalid ISBN when searching with variations To test: 1 - Enable SearchWithISBNVariations and IntranetCatalogSearchPulldown 2 - Refresh page and click on 'Search the catalog' tab 3 - Search for 'ISBN' 0385299209 4 - Note no results 5 - Note the search says if searched 'kw,wrdl: (nb=)' 6 - Apply patch, restart all the things 7 - Repeat search 8 - Search looks correctly formed 9 - Add the isbn above to a record, confirm it is returned by search 10 - Confirm searches for valid ISBNs still work as expected Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
A sign-off as incentive for a regression test?
Created attachment 95137 [details] [review] Bug 23768: Return invalid ISBN when searching with variations To test: 1 - Enable SearchWithISBNVariations and IntranetCatalogSearchPulldown 2 - Refresh page and click on 'Search the catalog' tab 3 - Search for 'ISBN' 0385299209 4 - Note no results 5 - Note the search says if searched 'kw,wrdl: (nb=)' 6 - Apply patch, restart all the things 7 - Repeat search 8 - Search looks correctly formed 9 - Add the isbn above to a record, confirm it is returned by search 10 - Confirm searches for valid ISBNs still work as expected Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Created attachment 95138 [details] [review] Bug 23768: Adjust the test for invalid ISBN Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(In reply to Katrin Fischer from comment #4) > A sign-off as incentive for a regression test? There was a test, and it was failing :)
Nice work! Pushed to master for 19.11.00
backported to 19.05.x for 19.05.06
Backported to 18.11.x for 18.11.12