[Koha-bugs] [Bug 8647] Modified quickslip only prints from Checkout tab

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Aug 15 21:22:43 CEST 2012


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

Jorge de Cardenas <jdeca at smfpl.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jdeca at smfpl.org

--- Comment #1 from Jorge de Cardenas <jdeca at smfpl.org> ---
The behavior is because on the 'Check Out' tab circ-toolbar.inc is loaded, on
the other tabs members-toolbar.inc is loaded instead.

Circ-toolbar.inc has:
var slip_re = /slip/;
function printx_window(print_type) {
  var handler = print_type.match(slip_re) ? "printslip" : "moremember";
  window.open("/cgi-bin/koha/members/" + handler + ".pl?borrowernumber=[%
borrowernumber %]&amp;print=" + print_type, "printwindow");
  return false;
}

and members-toolbar.inc has:

function printx_window(print_type) {
  window.open("/cgi-bin/koha/members/moremember.pl?borrowernumber=[%
borrowernumber %]&amp;print=" + print_type, "printwindow");
  return false;
}

copying those lines to members-toolbar.inc fixes the problem but I don't know
if it will introduce other unwanted behavior.

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


More information about the Koha-bugs mailing list