The homebranch and holdingbranch ddl in item block are not default selected, they just show the first line. With this patch I just put the default choice as the login branch. To test : without patch the first line of the ddl is shown. With the patch the login branch is shown in homebranch and holdingbranch. thx for testing.
Created attachment 12370 [details] [review] proposed patch
Created attachment 13062 [details] [review] Bug 8795: Adding the login branch as default in orderreceive.tt The homebranch and holdingbranch ddl in item block are not default selected. I just put the default choice as the login branch. Signed-off-by: Owen Leonard <oleonard@myacpl.org> Before the patch, orderreceive.pl showed the branches alphabetically. After the patch, it automatically selects the branch I'm logged in to.
QA Comment: The PrepareItemrecordDisplay routine seems not very clean, a lot of processing is useless. But it is not the goal of this patch. This patch works as expected. So I mark it as Passed QA. note to test: AcqCreateItem = "receive an order"
I would like to get a second QA team sign-off on this patch.
Created attachment 13670 [details] [review] Bug 8795: Adding the login branch as default in orderreceive.tt The homebranch and holdingbranch ddl in item block are not default selected. I just put the default choice as the login branch. Signed-off-by: Owen Leonard <oleonard@myacpl.org> Before the patch, orderreceive.pl showed the branches alphabetically. After the patch, it automatically selects the branch I'm logged in to. Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Still waiting a second QA team member sign off
QA Comment: Works as advertised. Although this patch only adds one line, it was quite hard to verify if it works and where it works. The routine PrepareItemrecordDisplay is used only in: acqui/addorderiso2709.pl C4/Serials.pm serials/serials-edit.pl services/itemrecorddisplay.pl (only called via additem.js) But that is not the full picture: Script orderreceive.pl goes via additem.js to itemrecorddisplay.pl using the routine. Script neworderempty.pl also uses the routine that way. Note that this patch therefore DOES also affect AcqCreateItem=ordering ! Have tested that. The patch makes Acquistion behave like Cataloguing where the routine GetBranchesLoop from Branch.pm already did something similar. Passed QA
Created attachment 14210 [details] [review] Patch
This patch has been pushed to master.