[Bug 32045] New: Cannot order mulitple from staged file
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=32045 Bug ID: 32045 Summary: Cannot order mulitple from staged file Change sponsored?: --- Product: Koha Version: master Hardware: All OS: All Status: NEW Severity: major Priority: P5 - low Component: Acquisitions Assignee: koha-bugs@lists.koha-community.org Reporter: katrin.fischer@bsz-bw.de QA Contact: testopia@bugs.koha-community.org To test: * Create order * Stage file of MARC records * Order from staged file * Select file * Select one or more records for ordering using the checkbox * Set the fund on the Accounting page * Save Nothing happens, there is JavaScript error in the console: Uncaught Error: cannot call methods on tabs prior to initialization; attempted to call method 'option' -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=32045 --- Comment #1 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- To test: * Create order * Stage file of MARC records * Order from staged file * Select file * Select one or more records for ordering using the checkbox * Save: You get: Some budgets are not defined in item records * IMPORTANT: Set the funds on the "Default accounting details" tab * Save again: nothing happens New bug: that error is actually wrong too.... budgets should be funds. -- 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=32045 Andrew Fuerste-Henry <andrewfh@dubcolib.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |andrewfh@dubcolib.org --- Comment #2 from Andrew Fuerste-Henry <andrewfh@dubcolib.org> --- I think this might actually be due to the item type from the staged file not being correctly used to meet the itype requirement on the Item Information tab. I was getting the same error you pasted on trying to add one of three records from a MARC file before I touched anything on the accounting tab (following the test plan on bug 32166). When I selected an item type, the error cleared and the order saved. -- 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=32045 Nick Clemens <nick@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |Needs Signoff -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=32045 --- Comment #3 from Nick Clemens <nick@bywatersolutions.com> --- Created attachment 143905 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=143905&action=edit Bug 32045: Use bootstrap tabs to select item tab When the form to add orders from a staged file is validated, we use toptabs functionality to switch to the item tab if there are missing fields. The display now uses bootstrap tabs, so the JS is throwing an error: Uncaught Error: cannot call methods on tabs prior to initialization; attempted to call method 'option' This patch simply switches the call to switch tabs To test: 1 - Stage a file for import 2 - Either use Marc(Item)FieldsToOrder to populate the orders or select a budget on the third tab 3 - View the second tab, items info, confirm itemtype is required, but don't populate it 4 - Attempt to save order, nothing happens 5 - Check the JS console (F12) 6 - Note the error: Uncaught Error: cannot call methods on tabs prior to initialization; attempted to call method 'option' 7 - Apply patch 8 - Cancel and add from staged file again 9 - Select a budget and save 10 - You now get an error popup: Some required item subfields are not set 11 - Confirm after the error you are shown the items tab 12 - Select itemtype 13 - Save 14 - Confirm orders added successfully -- 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=32045 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|Cannot order mulitple from |Cannot order multiple from |staged file |staged file -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=32045 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- QA Contact|testopia@bugs.koha-communit |katrin.fischer@bsz-bw.de |y.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=32045 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Needs Signoff |Signed Off Patch complexity|--- |Trivial patch -- 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=32045 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #143905|0 |1 is obsolete| | --- Comment #4 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- Created attachment 143909 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=143909&action=edit Bug 32045: Use bootstrap tabs to select item tab When the form to add orders from a staged file is validated, we use toptabs functionality to switch to the item tab if there are missing fields. The display now uses bootstrap tabs, so the JS is throwing an error: Uncaught Error: cannot call methods on tabs prior to initialization; attempted to call method 'option' This patch simply switches the call to switch tabs To test: 1 - Stage a file for import 2 - Either use Marc(Item)FieldsToOrder to populate the orders or select a budget on the third tab 3 - View the second tab, items info, confirm itemtype is required, but don't populate it 4 - Attempt to save order, nothing happens 5 - Check the JS console (F12) 6 - Note the error: Uncaught Error: cannot call methods on tabs prior to initialization; attempted to call method 'option' 7 - Apply patch 8 - Cancel and add from staged file again 9 - Select a budget and save 10 - You now get an error popup: Some required item subfields are not set 11 - Confirm after the error you are shown the items tab 12 - Select itemtype 13 - Save 14 - Confirm orders added successfully Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> -- 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=32045 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |rel_22_11_candidate --- Comment #5 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- Thx for investigating! -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=32045 --- Comment #6 from Andrew Fuerste-Henry <andrewfh@dubcolib.org> --- (In reply to Katrin Fischer from comment #5)
Thx for investigating!
Thank you for filing a bug that helped explain why the test plan for something else was giving me trouble :) -- 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=32045 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|koha-bugs@lists.koha-commun |nick@bywatersolutions.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=32045 Marcel de Rooy <m.de.rooy@rijksmuseum.nl> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Signed Off |BLOCKED CC| |m.de.rooy@rijksmuseum.nl --- Comment #7 from Marcel de Rooy <m.de.rooy@rijksmuseum.nl> --- QAing -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=32045 Marcel de Rooy <m.de.rooy@rijksmuseum.nl> changed: What |Removed |Added ---------------------------------------------------------------------------- QA Contact|katrin.fischer@bsz-bw.de |m.de.rooy@rijksmuseum.nl -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=32045 Marcel de Rooy <m.de.rooy@rijksmuseum.nl> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|BLOCKED |Passed QA -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=32045 Marcel de Rooy <m.de.rooy@rijksmuseum.nl> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #143909|0 |1 is obsolete| | --- Comment #8 from Marcel de Rooy <m.de.rooy@rijksmuseum.nl> --- Created attachment 144051 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=144051&action=edit Bug 32045: Use bootstrap tabs to select item tab When the form to add orders from a staged file is validated, we use toptabs functionality to switch to the item tab if there are missing fields. The display now uses bootstrap tabs, so the JS is throwing an error: Uncaught Error: cannot call methods on tabs prior to initialization; attempted to call method 'option' This patch simply switches the call to switch tabs To test: 1 - Stage a file for import 2 - Either use Marc(Item)FieldsToOrder to populate the orders or select a budget on the third tab 3 - View the second tab, items info, confirm itemtype is required, but don't populate it 4 - Attempt to save order, nothing happens 5 - Check the JS console (F12) 6 - Note the error: Uncaught Error: cannot call methods on tabs prior to initialization; attempted to call method 'option' 7 - Apply patch 8 - Cancel and add from staged file again 9 - Select a budget and save 10 - You now get an error popup: Some required item subfields are not set 11 - Confirm after the error you are shown the items tab 12 - Select itemtype 13 - Save 14 - Confirm orders added successfully Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=32045 Tomás Cohen Arazi <tomascohen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Version(s)| |22.11.00 released in| | Status|Passed QA |Pushed to master -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=32045 --- Comment #9 from Tomás Cohen Arazi <tomascohen@gmail.com> --- Pushed to master for 22.11. Nice work everyone, thanks! -- You are receiving this mail because: You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org