https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14962

--- Comment #69 from Martin Renvoize (ashimema) 
<[email protected]> ---
Created attachment 193744
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=193744&action=edit
Bug 14962: (QA follow-up) Fix barcode handling and async form reset in batch
components

Two bugs in both batch add and batch remove Vue components:

1. Barcodes were coerced to Number via .map(n => Number(n)), which
   converts alphanumeric barcodes (e.g. BC-00012345) to NaN and strips
   leading zeros from numeric ones. Replace with trim+filter to keep
   barcodes as strings.

2. clearForm() was called synchronously after registering the .then()
   callback, so the form was always cleared before the API response
   arrived. On error the user lost all entered barcodes. Move clearForm()
   inside the success callback.

Also clean up DisplaysBatchRemoveItems: remove unused useTemplateRef,
storeToRefs, config, and setWarning; link success message to the
specific background job ID.

Sponsored-by: ByWater Solutions
Signed-of-by: Martin Renvoize <[email protected]>

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to