Bug 10326: bulkmarcimport.pl doesn't restore value of CataloguingLog syspref
authorJanusz Kaczmarek <januszop@gmail.com>
Fri, 24 May 2013 11:21:36 +0000 (14:21 +0300)
committerGalen Charlton <gmc@esilibrary.com>
Fri, 31 May 2013 14:30:25 +0000 (07:30 -0700)
To test:

0) Don't apply the patch yet.
1) Have the CataloguingLog system preference set to 'Log'.
2) Import a file of bibliographic records with bulkmarcimport.pl.
3) Check the state of CataloguingLog system preference -- it will be
   set to 'Don't log'.
4) Apply the patch.
5) Repeat steps 1-3.  The CataloguingLog system preference
   will be 'Log'.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
misc/migration_tools/bulkmarcimport.pl

index 113aaf2..9ca7b31 100755 (executable)
@@ -460,7 +460,7 @@ RECORD: while (  ) {
     last if $i == $number;
 }
 $dbh->commit();
-
+$dbh->{AutoCommit} = 1;
 
 
 if ($fk_off) {