This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "main Koha release repository".
The branch, 20.05.x has been updated
via 19a3ea8c968526cb5c8c3a94ce72e72e51856a03 (commit)
from deffb12491fa1a928a427b25f55ea5929f030266 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 19a3ea8c968526cb5c8c3a94ce72e72e51856a03
Author: Marcel de Rooy <[email protected]>
Date: Tue Sep 15 12:09:56 2020 +0000
Bug 26464: Code correction in opac-main when news_id passed
Theoretical change. If somehow the search would return more than one
result, the code is wrong.
The if test can be simplified: remove scalar and >0.
We should not pass @array to one param. It would theoretically add wrong
items or
trigger an odd number warning. If it is only one, it is no problem. But it
is buggy.
Test plan:
Pass an existing news_id to opac-main. Item visible?
And pass a not-existing. Error message?
Signed-off-by: Marcel de Rooy <[email protected]>
Signed-off-by: Katrin Fischer <[email protected]>
Signed-off-by: Jonathan Druart <[email protected]>
Signed-off-by: Jonathan Druart <[email protected]>
(cherry picked from commit 22f14a7b6d45f3bf5ad57bd52203d4cdef724ce7)
Signed-off-by: Lucas Gass <[email protected]>
-----------------------------------------------------------------------
Summary of changes:
opac/opac-main.pl | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
hooks/post-receive
--
main Koha release repository
_______________________________________________
koha-commits mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-commits