Bug 18806

Summary: Cannot revert a batch
Product: Koha Reporter: Jonathan Druart <jonathan.druart>
Component: ToolsAssignee: Jonathan Druart <jonathan.druart>
Status: CLOSED FIXED QA Contact: Marcel de Rooy <m.de.rooy>
Severity: major    
Priority: P5 - low CC: fridolin.somers, katrin.fischer, m.de.rooy, mtj
Version: Main   
Hardware: All   
OS: All   
See Also: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=18329
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17240
Change sponsored?: --- Patch complexity: Small patch
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Bug Depends on: 18242    
Bug Blocks: 18807, 21818    
Attachments: Bug 18806: Fix batch revert
Bug 18806: Fix batch revert
Bug 18806: Fix batch revert

Description Jonathan Druart 2017-06-14 18:52:12 UTC
Since bug 18242: When a biblio is deleted, a new transaction is created.
tools/manage-marc-import.pl use the AutoCommit flag, which does not allow nested transaction.
AutoCommit must not be used.
Comment 1 Jonathan Druart 2017-06-14 18:54:30 UTC
Created attachment 64298 [details] [review]
Bug 18806: Fix batch revert

Since bug 18242: When a biblio is deleted, a new transaction is created.
tools/manage-marc-import.pl use the AutoCommit flag, which does not
allow nested transaction.
AutoCommit must not be used.

Test plan:
Import a batch, then revert it.
The biblios must have been correctly deleted, they were not before this
patch
Comment 2 Lee Jamison 2017-06-15 22:38:01 UTC
Created attachment 64371 [details] [review]
Bug 18806: Fix batch revert

Since bug 18242: When a biblio is deleted, a new transaction is created.
tools/manage-marc-import.pl use the AutoCommit flag, which does not
allow nested transaction.
AutoCommit must not be used.

Test plan:
Import a batch, then revert it.
The biblios must have been correctly deleted, they were not before this
patch

Signed-off-by: Lee Jamison <ldjamison@marywood.edu>
Comment 3 Marcel de Rooy 2017-06-16 07:33:44 UTC
QA: Looking here now
Comment 4 Marcel de Rooy 2017-06-16 07:54:34 UTC
Created attachment 64377 [details] [review]
Bug 18806: Fix batch revert

Since bug 18242: When a biblio is deleted, a new transaction is created.
tools/manage-marc-import.pl use the AutoCommit flag, which does not
allow nested transaction.
AutoCommit must not be used.

Test plan:
Import a batch, then revert it.
The biblios must have been correctly deleted, they were not before this
patch

Signed-off-by: Lee Jamison <ldjamison@marywood.edu>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Comment 5 Jonathan Druart 2017-06-19 19:38:56 UTC
Pushed to master for 17.11, thanks to everybody involved!
Comment 6 Fridolin Somers 2017-06-27 15:00:10 UTC
*** Bug 18343 has been marked as a duplicate of this bug. ***
Comment 7 Fridolin Somers 2017-06-27 15:06:37 UTC
Pushed to 17.05.x, will be in 17.05.02
Comment 8 Katrin Fischer 2017-06-27 22:05:36 UTC
This patch has been pushed to 16.11.x and will be in 16.11.10.
Comment 9 Mason James 2017-07-31 11:30:55 UTC
Pushed to 16.05.x, for 16.05.15 release