Set "AcqCreateItem" to "receiving an order" Set "autoBarcode" to "generated in the form <branchcode>yymm0001" Create an order and go to receive it at a path like /cgi-bin/koha/acqui/orderreceive.pl?ordernumber=2&invoiceid=1 When you try to generate a barcode, you should get a Javascript error like this in the console: Uncaught TypeError: Cannot read property 'field_value' of null It's because the form can't be selected by the Javascript written in C4/Barcodes/ValueBuilder.pm
Created attachment 119368 [details] [review] Bug 28103: Fix barcode plugin on the order receive view Fix the following error: Uncaught TypeError: Cannot read property 'field_value' of null Test plan: Set "AcqCreateItem" to "receiving an order" Set "autoBarcode" to "generated in the form <branchcode>yymm0001" Create an order and go to receive it at a path like /cgi-bin/koha/acqui/orderreceive.pl?ordernumber=2&invoiceid=1 Click on the barcode input and confirm that it's prefilled automatically
*** Bug 10890 has been marked as a duplicate of this bug. ***
Created attachment 119375 [details] [review] Bug 28103: Fix barcode plugin on the order receive view Fix the following error: Uncaught TypeError: Cannot read property 'field_value' of null Test plan: Set "AcqCreateItem" to "receiving an order" Set "autoBarcode" to "generated in the form <branchcode>yymm0001" Create an order and go to receive it at a path like /cgi-bin/koha/acqui/orderreceive.pl?ordernumber=2&invoiceid=1 Click on the barcode input and confirm that it's prefilled automatically Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Created attachment 119675 [details] [review] Bug 28103: Fix barcode plugin on the order receive view Fix the following error: Uncaught TypeError: Cannot read property 'field_value' of null Test plan: Set "AcqCreateItem" to "receiving an order" Set "autoBarcode" to "generated in the form <branchcode>yymm0001" Create an order and go to receive it at a path like /cgi-bin/koha/acqui/orderreceive.pl?ordernumber=2&invoiceid=1 Click on the barcode input and confirm that it's prefilled automatically Signed-off-by: Owen Leonard <oleonard@myacpl.org> Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Pushed to master for 21.05, thanks to everybody involved!
Pushed to 20.11.x for 20.11.05
Pushed to 20.05.x for 20.05.11
Not backported to oldoldstable (19.11.x). Feel free to ask if it's needed.
Oh cool this is broken again in 23.11+ at least :D