https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=36302 --- Comment #34 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- (In reply to Pedro Amorim from comment #31)
I don't agree with this behavior, i.e. redirecting to the single search result if only one is returned: 1) Maybe this is the norm? But I have personally not seen other search systems with this behavior.
I think this is/was about saving clicks for the circulation desk mostly. If you scan a card, they want to go directly to the patron account. I am not sure if it's also applied for other searches/results in general. But I believe it's always been the case for cardnumber searches (since 3.2 at least, when I began using Koha). I believe if you picked an entry, using the auto-complete, you'd also want/expect this behavior. (Not sure those comments fully apply here, just trying to give a user point of view)
2) We're not consistent: Some tables in Koha (most?) return a single result if only one is found, not redirect happens. 3) It's artificial, unexpected and a pain to maintain, as we've proven here.
Having said that, we've gone to great lengths in making sure this historic behavior is kept, and it appears we've reached a consensus that, in Firefox, when clicking the "back" button from the patron detail page, being redirected to it again is what was happening before the CSRF work, meaning this patch fixes the search issue introduced by CSRF and keeps the original behaviour.
-- You are receiving this mail because: You are watching all bug changes.