[Koha-bugs] [Bug 26946] New: Limit size of cash register's name on the UI

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Nov 6 10:58:37 CET 2020


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

            Bug ID: 26946
           Summary: Limit size of cash register's name on the UI
 Change sponsored?: ---
           Product: Koha
           Version: unspecified
          Hardware: All
                OS: All
            Status: ASSIGNED
          Severity: normal
          Priority: P5 - low
         Component: Staff Client
          Assignee: martin.renvoize at ptfs-europe.com
          Reporter: jonathan.druart at bugs.koha-community.org
        QA Contact: testopia at bugs.koha-community.org
                CC: gmcharlt at gmail.com
        Depends on: 23321

If you create a new cash register with a "long" (not that long actually) name,
the submit form fails with:

2020/11/06 09:56:19] [WARN] DBD::mysql::st execute failed: Data too long for
column 'name' at row 1 [for Statement "INSERT INTO `cash_registers` ( `branch`,
`description`, `name`, `starting_float`) VALUES ( ?,
?, ?, ? )" with ParamValues: 0="CPL", 1="<script>alert("â¤");</script>",
2="<script>alert("â¤");</script>", 3="0.00"] at
/usr/share/perl5/DBIx/Class/Storage/DBI.pm line 1836.


Referenced Bugs:

https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23321
[Bug 23321] Add 'cash registers' to the accounts system
-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list