|
Lines 16-23
my $schema = Koha::Database->new->schema;
Link Here
|
| 16 |
$schema->storage->txn_begin; |
16 |
$schema->storage->txn_begin; |
| 17 |
|
17 |
|
| 18 |
my $dbh = C4::Context->dbh; |
18 |
my $dbh = C4::Context->dbh; |
| 19 |
$dbh->{AutoCommit} = 0; |
|
|
| 20 |
$dbh->{RaiseError} = 1; |
| 21 |
$dbh->do(q{DELETE FROM special_holidays}); |
19 |
$dbh->do(q{DELETE FROM special_holidays}); |
| 22 |
$dbh->do(q{DELETE FROM repeatable_holidays}); |
20 |
$dbh->do(q{DELETE FROM repeatable_holidays}); |
| 23 |
$dbh->do("DELETE FROM reserves"); |
21 |
$dbh->do("DELETE FROM reserves"); |
|
Lines 243-246
ModReserveAffect( $item4->{itemnumber}, $patron2->{borrowernumber}, 0, $reserve4
Link Here
|
| 243 |
my $r4 = Koha::Holds->find($reserve4->{reserve_id}); |
241 |
my $r4 = Koha::Holds->find($reserve4->{reserve_id}); |
| 244 |
is($r4->expirationdate, $requested_expiredate->ymd, 'Requested expiration date should be kept' ); |
242 |
is($r4->expirationdate, $requested_expiredate->ymd, 'Requested expiration date should be kept' ); |
| 245 |
|
243 |
|
| 246 |
$dbh->rollback; |
244 |
$schema->storage->txn_rollback; |
| 247 |
- |
|
|