[Koha-bugs] [Bug 11817] New: Staff client next/previous browse JavaScript interferes with other JS functions

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Feb 21 20:22:53 CET 2014


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=11817

            Bug ID: 11817
           Summary: Staff client next/previous browse JavaScript
                    interferes with other JS functions
 Change sponsored?: ---
           Product: Koha
           Version: master
          Hardware: All
                OS: All
            Status: NEW
          Severity: major
          Priority: P5 - low
         Component: Templates
          Assignee: oleonard at myacpl.org
          Reporter: oleonard at myacpl.org
        QA Contact: testopia at bugs.koha-community.org

The JavaScript which builds the staff client detail page's next/previous links
uses a selector which is too broad:

Line 79: $('a[href*="biblionumber="]').click(function (ev) 

This can cause problems with other click events on the page. To reproduce the
error:

1. Log into Koha as a user who has cataloging permissions.
2. Search for a title.
3. View the detail page for a title which has items attached.
4. From the Edit menu choose "Delete record."

At this point you should see an alert warning you that the title cannot be
deleted because it has items attached. However, the page will still proceed to
the delete page (and an error message will appear).

The problem doesn't happen if you navigate directly to a detail page.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list