Bug 14313: OPAC - Adding a comment makes result browser disappear
To reproduce:
- Allow commenting in OPAC (Syspref reviewson)
- Log in to OPAC
- Do a search with many results
- Click on a biblio in result list
- Verify that you can browse the results in detail view ("Browse results")
- Repeat teh search above
- Click on the same biblio as above
- Add a comment (Tab "Comments")
- Close commenting window
- Click on "Next" in result browser
Result: The next biblio is displayed, but result browser has disappeared.
To test:
- Apply patch
- Try to reproduce issue above, verify that result browser does no longer disappear
AMended to remove whitespace chars. / MV
Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com>
Bug & solution checked, works well. No koha-qa errors
Signed-off-by: Jonathan Druart <jonathan.druart@koha-community.org>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
(cherry picked from commit 22c5c4b468)
Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
Signed-off-by: Liz Rea <wizzyrea@gmail.com>
This commit is contained in:
parent
957acc5a81
commit
d04fa7b258
|
|
@ -428,12 +428,15 @@ sub get_template_and_user {
|
|||
$LibraryNameTitle =~ s/<(?:\/?)(?:br|p)\s*(?:\/?)>/ /sgi;
|
||||
$LibraryNameTitle =~ s/<(?:[^<>'"]|'(?:[^']*)'|"(?:[^"]*)")*>//sg;
|
||||
|
||||
# clean up the busc param in the session if the page is not opac-detail and not the "add to list" page
|
||||
# clean up the busc param in the session
|
||||
# if the page is not opac-detail and not the "add to list" page
|
||||
# and not the "edit comments" page
|
||||
if ( C4::Context->preference("OpacBrowseResults")
|
||||
&& $in->{'template_name'} =~ /opac-(.+)\.(?:tt|tmpl)$/ ) {
|
||||
my $pagename = $1;
|
||||
unless ( $pagename =~ /^(?:MARC|ISBD)?detail$/
|
||||
or $pagename =~ /^addbybiblionumber$/ ) {
|
||||
or $pagename =~ /^addbybiblionumber$/
|
||||
or $pagename =~ /^review$/ ) {
|
||||
my $sessionSearch = get_session( $sessionID || $in->{'query'}->cookie("CGISESSID") );
|
||||
$sessionSearch->clear( ["busc"] ) if ( $sessionSearch->param("busc") );
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue