[Koha-bugs] [Bug 23992] Adding multiple items with barcode might end with infinite loop if same barcode will be next_value

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Nov 12 21:14:40 CET 2019


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

--- Comment #2 from Andrew Nugged <nugged at gmail.com> ---
this might be "WIP" (not full patch without test plan), so I need community
help, because it's hard to generate test plan: I tried with all variants of
barcodes and in most cases we have barcode just incremented in "->next_value"
method. 

With patch, the error "no_next_barcode" will be generated so this will break
the loop and inform the user about the wrong generation in cases when we start
adding WITH barcode but then for some reason the same or empty barcode started
to appear.

If we start with empty barcode – then just requested numbers of items added
without barcodes at all, as it was before.

Also, this will prevent the infinite loop (when $i++ won't be executed) in
cases when the barcode generator might stuck and return the same old or some
another barcode which will be always found for some item.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list