Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
};
subtest 'empty string means unlimited' => sub {
- plan tests => 1;
+ plan tests => 2;
Koha::CirculationRules->set_rules(
{
itemtype => '*',
rules => {
maxissueqty => '',
- maxonsiteissueqty => 0,
+ maxonsiteissueqty => '',
}
},
);
'maxissueqty="" should mean unlimited'
);
+ is(
+ C4::Circulation::TooMany( $patron, $biblio->{biblionumber}, $item, { onsite_checkout => 1 } ),
+ undef,
+ 'maxonsiteissueqty="" should mean unlimited'
+ );
+
teardown();
};