[Koha-bugs] [Bug 33678] New: Saving new numbering pattern crashes on missing description

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu May 4 15:12:50 CEST 2023


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

            Bug ID: 33678
           Summary: Saving new numbering pattern crashes on missing
                    description
 Change sponsored?: ---
           Product: Koha
           Version: master
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P5 - low
         Component: Serials
          Assignee: koha-bugs at lists.koha-community.org
          Reporter: m.de.rooy at rijksmuseum.nl
        QA Contact: testopia at bugs.koha-community.org

Save as new pattern generates a 500 when I change advanced pattern and save

GET
https://SERVER/cgi-bin/koha/serials/create-numberpattern.pl?patternname=vol_no_week&numberingmethod=Vol.
{X}, No.
{Y}&label1=Volume&label2=Number&add1=1&add2=1&every1=12&every2=1&setto1=1&setto2=1&whenmorethan1=99999&whenmorethan2=52
[HTTP/1.1 500 Internal Server Error 64ms]

C4::Serials::Numberpattern::AddSubscriptionNumberpattern(): DBI Exception:
DBD::mysql::st execute failed: Field 'description' doesn't have a default value
at /usr/share/koha/serials/create-numberpattern.pl line 58
 at /usr/share/perl5/DBIx/Class/Exception.pm line 77
    DBIx::Class::Exception::throw('DBIx::Class::Exception', 'DBI Exception:
DBD::mysql::st execute failed: Field \'description\' doesn\'t have a default
value', 0) called at /usr/share/perl5/DBIx/Class/Schema.pm line 1118

Keywords for searching:
​saveAdvancedPattern
#saveadvancedpatternbutton

Reproduce by changing number pattern of saved subscription and trying to Save
the new numbering pattern. This is an ajax call. You see 500 in the console.

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


More information about the Koha-bugs mailing list