Bug 18368 - DBversion 16.12.00.022 not set by updatedatabase.pl
authorMarc Véron <veron@veron.ch>
Sun, 2 Apr 2017 16:59:52 +0000 (18:59 +0200)
committerKyle M Hall <kyle@bywatersolutions.com>
Mon, 3 Apr 2017 09:13:38 +0000 (09:13 +0000)
Updating to 16.12.00.22 puts the upgrade process in an endless loop because DBversione is not set by updatedatabase.pl
Missing line:  SetVersion( $DBversion )

This patch inserts the line as appropriate.

To test:
- Apply patch
- Verify code change makes sense
- Verify that upgrade smoothly runs through

Signed-off-by: Mark Tompsett <mtompset@hotmail.com>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
installer/data/mysql/updatedatabase.pl

index c0c6ab0..e3d1675 100755 (executable)
@@ -14076,6 +14076,7 @@ if( CheckVersion( $DBversion ) ) {
 $DBversion = "16.12.00.022";
 if( CheckVersion( $DBversion ) ) {
     print "NOTE: The sender for serial claim notifications has been corrected. The email address of the staff member is no longer used. We will use the branch email address or KohaAdminEmailAddress, as is done for other notices.\n";
+    SetVersion( $DBversion );
     print "Upgrade to $DBversion done (Bug 17866 - Change sender for serial claim notifications)\n";
 }