[Koha-bugs] [Bug 24742] New: Can't save news item in strict mode without value in number field

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Feb 27 14:58:32 CET 2020


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

            Bug ID: 24742
           Summary: Can't save news item in strict mode without value in
                    number field
 Change sponsored?: ---
           Product: Koha
           Version: master
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P5 - low
         Component: Tools
          Assignee: koha-bugs at lists.koha-community.org
          Reporter: oleonard at myacpl.org
        QA Contact: testopia at bugs.koha-community.org

If strict mode is enabled, you can't save a news item without putting a number
in the "Appears in position" field. The operation fails silently and this error
appears in the log:

DBD::mysql::st execute failed: Incorrect integer value: '' for column 'number'
at row 1 [for Statement "UPDATE opac_news SET number = ?,expirationdate =
?,lang = ?,timestamp = ?,title = ?,branchcode = ?,content = ? WHERE idnew = ?;"
with ParamValues: 0="", ... ] at /kohadevbox/koha/C4/NewsChannels.pm line 106.

-- 
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