Bug 38698: Fix Acquisitions duplicate orders search
This patch updates the field for the created by filter from
ui.item.borrowernumber to ui.item.patron_id
To test:
1. Add a vendor and a basket
2. Stage a file and add an order to the basket
3. Add another basket and add an order using From existing orders (copy)
4. On the Duplicate existing orders page search for Basket created by: 'koha'
5. No results appear :(
6. Apply patch and repeat steps 3 and 4
6. Confirm the search returns the basket you created earlier
Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit 50c5d167bb)
Signed-off-by: Paul Derscheid <paul.derscheid@lmscloud.de>
This commit is contained in:
parent
d4ac3fa2c2
commit
13ebb74803
|
|
@ -350,7 +350,7 @@
|
|||
}
|
||||
patron_autocomplete($("#find_patron"), {
|
||||
'on-select-callback': function( event, ui ) {
|
||||
var field = ui.item.borrowernumber;
|
||||
var field = ui.item.patron_id;
|
||||
AddPatron( ui.item.firstname + " " + ( ui.item.middle_name || "" ) + " " + ui.item.surname, field, $("#basket_creators"), 'created_by' );
|
||||
$("#find_patron").val('').focus();
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Reference in New Issue