]> git.koha-community.org Git - koha.git/commit
Bug 24546: Fix intentions of build_sample_item in Club/Hold.t
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Thu, 30 Jan 2020 14:38:26 +0000 (15:38 +0100)
committerJoy Nelson <joy@bywatersolutions.com>
Mon, 10 Feb 2020 23:50:30 +0000 (23:50 +0000)
commit29cabac319d0e1ee9cd44591d112db69507bd068
treeab500a1e9488f2f2ef2ca211b6222115fda2c79d
parenta27c5c9dcd5f5f8cbe9af7b9b5ae0f73ac81b2cb
Bug 24546: Fix intentions of build_sample_item in Club/Hold.t

In t/db_dependent/Koha/Club/Hold.t:
my $item1 = $builder->build_sample_item({ branchcode => $library->branchcode });
my $item2 = $builder->build_sample_item({ branchcode => $library->branchcode });

build_sample_item takes either "library" or the item's attributes.
branchcode is not part of the item's table, so what those 2 lines are trying to acchieve is wrong.

Test plan:
 % prove t/db_dependent/Koha/Club/Hold.t
must return green before and after this patch

Note that this patch also remove an uneeded debugging statement.

This has been caught by bug 24363.

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Joy Nelson <joy@bywatersolutions.com>
t/db_dependent/Koha/Club/Hold.t