summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
2ca69b4)
We need to pass undef itemnumber to build_object() to actually have a
hold without an item tied to it. Otherwise build_object() will create
automatically an item for us (thus making it an item-level hold)
To test:
$ prove t/db_dependent/Koha/Item.t
Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
class => 'Koha::Holds',
value => {
biblionumber => $source_biblionumber,
class => 'Koha::Holds',
value => {
biblionumber => $source_biblionumber,
},
});
my $item_level_hold1 = $builder->build_object({
},
});
my $item_level_hold1 = $builder->build_object({