Summary: | Unable to 'Close and export as PDF' a basket group | ||
---|---|---|---|
Product: | Koha | Reporter: | Caroline Cyr La Rose <caroline.cyr-la-rose> |
Component: | Acquisitions | Assignee: | Katrin Fischer <katrin.fischer> |
Status: | CLOSED FIXED | QA Contact: | Testopia <testopia> |
Severity: | normal | ||
Priority: | P5 - low | CC: | jonathan.druart, lucas, martin.renvoize |
Version: | Main | Keywords: | regression |
Hardware: | All | ||
OS: | All | ||
See Also: | https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=32935 | ||
Change sponsored?: | --- | Patch complexity: | Small patch |
Documentation contact: | Documentation submission: | ||
Text to go in the release notes: | Version(s) released in: |
23.05.00,22.11.04
|
|
Circulation function: | |||
Bug Depends on: | 13614 | ||
Bug Blocks: | |||
Attachments: |
Bug 31056: Restore closeandprint function on basketgroups page
Bug 31056: Restore closeandprint function on basketgroups page Bug 31056: Restore closeandprint function on basketgroups page |
Description
Caroline Cyr La Rose
2022-06-27 19:13:19 UTC
Created attachment 146461 [details] [review] Bug 31056: Restore closeandprint function on basketgroups page Bug 13614 removed the basketgroup.js asset from the basket group page. This file includes the closeandprint function used for closing and printing the PDF from the open basket groups tab. The patch restores just this function directly in the file where it's needed as this is the only spot and it's only a few lines. The rest of basketgroup.js appears unused. To test: * Create a basket with one or more oder lines * Close the basket and check the checkbox to add it to a basket group * Reopen the basket group from the basket groups page * Verify the close and print only leads to a JS error and nothing happens * Apply patch * Repeat and verify you can now 'Close and print' from the open basket group tab * Verify all other buttons work as expected as well Created attachment 146507 [details] [review] Bug 31056: Restore closeandprint function on basketgroups page Bug 13614 removed the basketgroup.js asset from the basket group page. This file includes the closeandprint function used for closing and printing the PDF from the open basket groups tab. The patch restores just this function directly in the file where it's needed as this is the only spot and it's only a few lines. The rest of basketgroup.js appears unused. To test: * Create a basket with one or more oder lines * Close the basket and check the checkbox to add it to a basket group * Reopen the basket group from the basket groups page * Verify the close and print only leads to a JS error and nothing happens * Apply patch * Repeat and verify you can now 'Close and print' from the open basket group tab * Verify all other buttons work as expected as well Signed-off-by: Caroline Cyr La Rose <caroline.cyr-la-rose@inlibro.com> Thanks Katrin! (In reply to Caroline Cyr La Rose from comment #3) > Thanks Katrin! You are very welcome! :) I don't understand, it's in koha-tmpl/intranet-tmpl/prog/js/basketgroup.js:function closeandprint(bg){ You are not supposed to redefine it here. The js file still exists, but never used I think you may simply need to re-add it. (In reply to Jonathan Druart from comment #5) > I don't understand, it's in > > koha-tmpl/intranet-tmpl/prog/js/basketgroup.js:function closeandprint(bg){ > > You are not supposed to redefine it here. > > The js file still exists, but never used > > I think you may simply need to re-add it. I explained that in the commit message: Bug 13614 removed the basketgroup.js asset from the basket group page. This file includes the closeandprint function used for closing and printing the PDF from the open basket groups tab. The patch restores just this function directly in the file where it's needed as this is the only spot and it's only a few lines. The rest of basketgroup.js appears unused. And I also filed bug 32935 to remove basketgroup.js. Created attachment 147192 [details] [review] Bug 31056: Restore closeandprint function on basketgroups page Bug 13614 removed the basketgroup.js asset from the basket group page. This file includes the closeandprint function used for closing and printing the PDF from the open basket groups tab. The patch restores just this function directly in the file where it's needed as this is the only spot and it's only a few lines. The rest of basketgroup.js appears unused. To test: * Create a basket with one or more oder lines * Close the basket and check the checkbox to add it to a basket group * Reopen the basket group from the basket groups page * Verify the close and print only leads to a JS error and nothing happens * Apply patch * Repeat and verify you can now 'Close and print' from the open basket group tab * Verify all other buttons work as expected as well Signed-off-by: Caroline Cyr La Rose <caroline.cyr-la-rose@inlibro.com> JD Amended patch: fix indentation and spacing Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> PQA as it restores the exact same function that existed already, but this sleep 3s is wrong. Pushed to master for 23.05. Nice work everyone, thanks! Nice work everyone! Pushed to stable for 22.11.x Missing dependencies for 22.05.x, no backport. *** Bug 32077 has been marked as a duplicate of this bug. *** |