From 0b78011d8c42363f1f3ebdaaa53431f8493efe70 Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Thu, 3 Sep 2020 16:35:57 +0000 Subject: [PATCH] Bug 26374: update from bug 19974 is not idempotent Signed-off-by: Martin Renvoize Signed-off-by: Jonathan Druart --- installer/data/mysql/updatedatabase.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index 1ea8f64bb3..3fe1ca177c 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -15895,7 +15895,7 @@ if( CheckVersion( $DBversion ) ) { value="batchmod,moredetail,cronjob,additem" WHERE variable="MarkLostItemsAsReturned" }); - } else { + } elsif ( $original_value == 0 || !defined($original_value) ) { $dbh->do(q{ UPDATE systempreferences SET type="multiple", -- 2.39.5