[Koha-bugs] [Bug 28012] Error on Saving new numbering pattern

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Sep 8 14:48:36 CEST 2022


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

Emmanuel Bétemps <e.betemps at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|Needs Signoff               |Failed QA
                 CC|                            |e.betemps at gmail.com

--- Comment #13 from Emmanuel Bétemps <e.betemps at gmail.com> ---
(In reply to Joonas Kylmälä from comment #4)

> To test:
>  1) Go to /cgi-bin/koha/serials/subscription-numberpatterns.pl
>     and try creating a new pattern, notice that only Name and
>     Description are mandatory after applying this patch


Hi,

after applying the patch, when I want to create a new pattern :
- Name is labeled as mandatory
- Description is not labeled as mandatory
- Numbering formula is labeled as mandatory
(see attachment 'Screenshot - Modify pattern.png')

I still can edit existing numbering patterns but if a delete the description,
an error occurs when I (try to) save :

C4::Serials::Numberpattern::ModSubscriptionNumberpattern(): DBI Exception:
DBD::mysql::st execute failed: Column 'description' cannot be null at
/kohadevbox/koha/serials/subscription-numberpatterns.pl line 95
 at /usr/share/perl5/DBIx/Class/Exception.pm line 77



I can't create a new one : 

C4::Serials::Numberpattern::AddSubscriptionNumberpattern(): DBI Exception:
DBD::mysql::st execute failed: Incorrect integer value: '' for column
`koha_test`.`subscription_numberpatterns`.`add2` at row 1 at
/kohadevbox/koha/serials/subscription-numberpatterns.pl line 70
 at /usr/share/perl5/DBIx/Class/Exception.pm line 77

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


More information about the Koha-bugs mailing list