[Bug 44306] New: Close the print slip tab after the slip is printed
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44306 Bug ID: 44306 Summary: Close the print slip tab after the slip is printed Initiative type: --- Sponsorship --- status: Product: Koha Version: unspecified Hardware: All OS: All Status: NEW Severity: minor Priority: P5 - low Component: Circulation Assignee: koha-bugs@lists.koha-community.org Reporter: caroline.cyr-la-rose@inlibro.com QA Contact: testopia@bugs.koha-community.org CC: gmcharlt@gmail.com, kyle@bywatersolutions.com Target Milestone: --- The print slip tab doesn't close automatically after the slip is printed. This came to our attention as we upgrade our clients from 25.05 to 26.05. I tested Main and it behaves the same as 26.05. To recreate : 1. Check out an item to a patron (e.g. check out 39999000012453 to Henry Acevedo) 2. Click Print > Print slip --> A new tab opens and the print window opens automatically (OK!) 3. Print or save the slip --> The tab doesn't close automatically 4. Close the tab to return to the patron file (additional click) In 25.05, the tab closes automatically. In 26.05 and main, the tab remains open and the staff have to close it manually. -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44306 Hammat wele <hammat.wele@inlibro.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |hammat.wele@inlibro.com Assignee|koha-bugs@lists.koha-commun |hammat.wele@inlibro.com |ity.org | -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44306 Hammat wele <hammat.wele@inlibro.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |philippe.blouin@inlibro.com -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44306 --- Comment #1 from Hammat wele <hammat.wele@inlibro.com> --- Created attachment 212736 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=212736&action=edit Bug 44306: Close the print slip tab after the slip is printed The print slip tab doesn't close automatically after the slip is printed. To recreate : 1. Check out an item to a patron (e.g. check out 39999000012453 to Henry Acevedo) 2. Click Print > Print slip --> A new tab opens and the print window opens automatically ==>OK 3. Print or save the slip --> The tab doesn't close automatically 4. Close the tab to return to the patron file (additional click) 5. Apply the patch 6. Repeat step 2 and 3 --> The tab is closed automatically -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44306 Hammat wele <hammat.wele@inlibro.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |Needs Signoff -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44306 --- Comment #2 from babar junaid <babarjunaid1122@gmail.com> --- I tried to reproduce this on main (186bbe7) in koha-testing-docker and could not, in Google Chrome 156 on Linux. Steps: patron with two checkouts, Print > Print slip, then in the print dialog either Save as PDF or Cancel. Without the patch, the slip tab closed by itself in both cases, as soon as the dialog closed (printed: the PDF had the full slip; cancelled: closed at once). An event trace in the slip tab shows why: in this Chrome, window.print() returns immediately, the page is paused while the dialog is open, and afterprint fires when the dialog closes, after onafterprint has been assigned, so the existing handler closes the tab. With the patch, the behaviour was the same, and the tab was closed by the onafterprint handler, not by the new timer. Which browser, version and operating system shows the tab staying open? I can retest there before signing off. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44306 --- Comment #3 from Hammat wele <hammat.wele@inlibro.com> --- (In reply to babar junaid from comment #2)
I tried to reproduce this on main (186bbe7) in koha-testing-docker and could not, in Google Chrome 156 on Linux.
Hi Babar, Thanks for testing We can only reproduce this behaviour in Firefox (v158.0). The issue is related to when the afterprint event is fired in Firefox, compared to Chrome. Could you try reproducing it in Firefox as well? -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44306 --- Comment #4 from Caroline Cyr La Rose <caroline.cyr-la-rose@inlibro.com> --- I always use Firefox on Linux. However, this was first reported by one of our clients and I know they work on Windows, probably with Edge, but maybe Firefox I'm not 100% sure. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44306 Marcel de Rooy <m.de.rooy@rijksmuseum.nl> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |m.de.rooy@rijksmuseum.nl See Also| |https://bugs.koha-community | |.org/bugzilla3/show_bug.cgi | |?id=43114 --- Comment #5 from Marcel de Rooy <m.de.rooy@rijksmuseum.nl> --- Can we close this one in favor of bug 43114? -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44306 Caroline Cyr La Rose <caroline.cyr-la-rose@inlibro.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Needs Signoff |RESOLVED Resolution|--- |DUPLICATE --- Comment #6 from Caroline Cyr La Rose <caroline.cyr-la-rose@inlibro.com> --- Ok no prob *** This bug has been marked as a duplicate of bug 43114 *** -- You are receiving this mail because: You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org