[Koha-bugs] [Bug 32353] items.item_group_id should be undefined in tests by default

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Nov 28 09:20:18 CET 2022


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

--- Comment #10 from Marcel de Rooy <m.de.rooy at rijksmuseum.nl> ---
Shouldnt we do something like this:

diff --git a/t/lib/TestBuilder.pm b/t/lib/TestBuilder.pm
index 5a08b3a018..92068f83c4 100644
--- a/t/lib/TestBuilder.pm
+++ b/t/lib/TestBuilder.pm
@@ -583,6 +583,8 @@ sub _gen_default_values {
             damaged            => 0,
             materials          => undef,
             more_subfields_xml => undef,
+        },
+        ItemGroupItem => {
             item_group_id      => undef,
         },
         Category => {


There is no such field in items:
CREATE TABLE `item_group_items` (
  `item_group_items_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'id for the
group/item link',
  `item_group_id` int(11) NOT NULL DEFAULT 0 COMMENT 'foreign key making this
table a 1 to 1 join from items to item groups',
  `item_id` int(11) NOT NULL DEFAULT 0 COMMENT 'foreign key linking this table
to the items table',

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


More information about the Koha-bugs mailing list