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

--- Comment #7 from Caroline Cyr La Rose <[email protected]> ---
I did run 

prove t/db_dependent/Barcodes_ValueBuilder.t

(after signing off) and there was nothing to report. 

Here's a revised test plan if you want to update the commit message

To test :

1. Change the autobarcode system preference to incremental EAN-13 barcodes
   1.1. Go to Administration > System preferences
   1.2. Search for autoBarcode
   1.3. Change the value to "incremental EAN-13 barcodes"
   1.4. Click "Save all Cataloging preferences"

2. Add an item to an existing bibliographic record
   2.1. Search for a bibliographic record
   2.2. Click New > New item
   2.3. Click inside the p- barcode field
        --> Generates 3999900001927
   2.4. Fill out any other mandatory field (should be already done in KTD)
   2.5. Click "Add item"
        --> Item is saved correctly (OK)

3. Try to add a second item
   3.3. Redo steps 2.3 to 2.5
        --> Same barcode is generated again (NOT OK)
        --> Error saving item: Barcode must be unique.

4. Apply patch and restart_all

5. Redo steps 2 and 3
   --> Both items should be saved correctly (OK!)

6. Run

prove t/db_dependent/Barcodes_ValueBuilder.t

   --> Test should pass

-- 
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