Koha/circ
Petro Vashchuk e2611c919d
Bug 30409: barcodedecode() should always trim barcode
Barcode is trimmed of leading/trailing whitespaces in many instances
before the barcodedecode sub was called. This patch instead makes that
barcodedecode sub is going to trim it itself and removes unnecessary,
and repetitive code that was used before barcodedecode was called.

Steps to test:
1. Edit item with any barcode, add a bunch of whitespaces at the start
and at the bottom of it. Save the item. Ensure that this action ruins
the barcode and ensure that the spaces are still there by editing the
same item again.
2. Apply the patch.
3. Edit the same item again in the same fashion. Ensure that now all
whitespaces are getting trimmed and it doesn't affect the barcode in
any negative way.

Signed-off-by: David Nind <david@davidnind.com>

Signed-off-by: Joonas Kylmälä <joonas.kylmala@iki.fi>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
2022-06-14 07:54:58 -03:00
..
add_message.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
article-request-slip.pl Bug 29771: Scalar context for split 2022-03-08 23:03:34 -10:00
article-requests.pl Bug 29844: Fix ->search occurrences 2022-02-09 15:36:23 -10:00
bookcount.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
branchoverdues.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
branchtransfers.pl Bug 30409: barcodedecode() should always trim barcode 2022-06-14 07:54:58 -03:00
checkout-notes.pl Bug 29380: Correct table name in joins to prevent errors 2021-11-03 15:40:52 +01:00
circulation-home.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
circulation.pl Bug 30409: barcodedecode() should always trim barcode 2022-06-14 07:54:58 -03:00
del_message.pl Bug 29903: Prevent messages to be deleted from unauthorised users 2022-02-02 21:05:29 -10:00
hold-transfer-slip.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
offline-mf.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
offline.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
on-site_checkouts.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
overdue.pl Bug 30735: Fix filtering by patron attribute with AV in overdues report 2022-05-18 17:22:09 -10:00
pendingreserves.pl Bug 30337: Holds to Pull ( pendingreserves.pl ) ignores holds if priority 1 hold is suspended 2022-06-02 10:21:52 -03:00
renew.pl Bug 30409: barcodedecode() should always trim barcode 2022-06-14 07:54:58 -03:00
request-article.pl Bug 30094: Make the patron search from request-article.pl use the REST API 2022-04-04 09:47:00 +02:00
reserveratios.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
returns.pl Bug 30409: barcodedecode() should always trim barcode 2022-06-14 07:54:58 -03:00
set-library.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
transfer-slip.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
transfers_to_send.pl Bug 29859: Use iterator instead of as_list 2022-02-09 15:36:23 -10:00
transferstoreceive.pl Bug 19532: (RM follow-up) More use of system preference 2022-03-14 23:11:12 -10:00
view_holdsqueue.pl Bug 29015: Add options for itemtype, collection, and shelving location to view_holdsqueue.pl 2021-11-03 15:40:52 +01:00
waitingreserves.pl Bug 29771: Scalar context for split 2022-03-08 23:03:34 -10:00
ysearch.pl Bug 30251: (bug 10902 follow-up) With IndependentBranches non-superlibrarians do not get autocomplete list in circulation module 2022-03-25 11:01:04 -10:00