Bug 36919: Remove yet another warning from Koha/Object.t

DBIx::Class::Storage::DBI::insert(): Missing value for primary key column 'currency' on Currency - perhaps you forgot to set its 'is_auto_increment' attribute during add_columns()? Treating 'currency' implicitly as an autoinc, and attempting value retrieval at /kohadevbox/koha/Koha/Object.pm line 172
Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit 34ff421c1c)
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit 386a823a84)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
This commit is contained in:
Jonathan Druart 2024-05-22 11:23:07 +02:00 committed by Fridolin Somers
parent 59bb09fc2d
commit 8a49336150
1 changed files with 1 additions and 0 deletions

View File

@ -1008,6 +1008,7 @@ subtest 'store() tests' => sub {
my $currency = eval {
Koha::Acquisition::Currency->new(
{
currency => 'Cur_test',
active => 'IT4test',
}
)->store;