Bugzilla – Attachment 174265 Details for
Bug 38384
General fix for plugins breaking database transactions
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
Test case (script) to reproduce the breaking database transaction
test_transaction.pl (text/x-perl-script), 632 bytes, created by
Paul Derscheid
on 2024-11-08 09:23:21 UTC
(
hide
)
Description:
Test case (script) to reproduce the breaking database transaction
Filename:
MIME Type:
Creator:
Paul Derscheid
Created:
2024-11-08 09:23:21 UTC
Size:
632 bytes
patch
obsolete
>#!/usr/bin/env perl > >use strict; >use warnings; > >use C4::Biblio qw( AddBiblio ); >use C4::Context (); > >use Koha::Biblios (); >use Koha::Database (); > >use Carp qw( carp ); >use Data::Dumper qw( Dumper ); >use MARC::Record (); > >my $schema = Koha::Database->new->schema; > >$schema->storage->txn_begin; > >my ($biblionumber) = AddBiblio( MARC::Record->new, q{}, { skip_record_index => 1 } ); >if ($biblionumber) { > my $biblio = Koha::Biblios->find($biblionumber); > if ($biblio) { > carp Dumper $biblio; > } else { > carp 'No biblio'; > } > >} else { > carp 'No biblionumber'; >} > >$schema->storage->txn_commit; > >1;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 38384
:
174150
|
174264
| 174265 |
174280
|
174282