Bug 27826

Summary: Self checkout dies on '?' as a barcode
Product: Koha Reporter: Nick Clemens (kidclamp) <nick>
Component: Self checkoutAssignee: Bugs List <koha-bugs>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: normal    
Priority: P5 - low CC: jonathan.druart
Version: Main   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Bug Depends on: 19458    
Bug Blocks:    

Description Nick Clemens (kidclamp) 2021-03-01 22:30:15 UTC
To recreate:
1 - Assign an item '?' as a barcode
2 - Check the item out to a patron
3 - Enable and visit the self checkout:
    http://localhost:8080/cgi-bin/koha/sco/sco-main.pl
4 - Try to load the patron with the item issued
5 - Boom! Error below:
Template process failed: undef error - Quantifier follows nothing in regex; marked by <-- HERE in m/? <-- HERE / at /usr/lib/x86_64-linux-gnu/perl5/5.24/Template/VMethods.pm line 191.
 at /kohadevbox/koha/C4/Templates.pm line 122
Comment 1 Jonathan Druart 2021-03-02 15:39:16 UTC
Caused by
  commit fff6777b35195dca489726875039c2bde6b52c2c
  Bug 19458: Self-check module highlighting