[Koha-bugs] [Bug 33053] Tables item_groups and recalls have a biblio_id column with a default of 0
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Wed May 10 21:34:10 CEST 2023
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33053
Tomás Cohen Arazi <tomascohen at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |tomascohen at gmail.com
Keywords| |additional_work_needed
--- Comment #6 from Tomás Cohen Arazi <tomascohen at gmail.com> ---
This patchset highlighted an issue, see:
I commented like this:
$ git diff
diff --git a/t/db_dependent/api/v1/item_groups.t
b/t/db_dependent/api/v1/item_groups.t
index 3506eae582d..8a823d121ec 100755
--- a/t/db_dependent/api/v1/item_groups.t
+++ b/t/db_dependent/api/v1/item_groups.t
@@ -112,11 +112,11 @@ subtest 'add() tests' => sub {
# Invalid biblio id
{ # hide useless warnings
- local *STDERR;
- open STDERR, '>', '/dev/null';
+ #local *STDERR;
+ #open STDERR, '>', '/dev/null';
$t->post_ok(
"//$auth_userid:$password@/api/v1/biblios/XXX/item_groups" => json =>
$item_group )
->status_is( 404 );
- close STDERR;
+ #close STDERR;
}
$schema->storage->txn_rollback;
And then:
$ prove t/db_dependent/api/v1/item_groups.t
t/db_dependent/api/v1/item_groups.t .. 1/5
DBIx::Class::Storage::DBI::_dbh_execute(): DBI Exception: DBD::mysql::st
execute failed: Column 'biblio_id' cannot be null at
/kohadevbox/koha/Koha/Object.pm line 170
# Failed test '404 Not Found'
# at t/db_dependent/api/v1/item_groups.t line 117.
# got: '500'
# expected: '404'
# Looks like you failed 1 test of 6.
# Failed test 'add() tests'
# at t/db_dependent/api/v1/item_groups.t line 123.
Please provide a fix!
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list