From d38c4c9fde24654d23daf329d332698abd830a63 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 Signed-off-by: Kyle M Hall (cherry picked from commit 61b005822b19f051f38a30619926ca6c79c8e0da) Signed-off-by: Fridolin Somers (cherry picked from commit 082646bd62cc023bf6e97862227fa91369f0140a) Signed-off-by: Victor Grousset/tuxayo --- 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 8022785bc3..f26a023551 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -15896,7 +15896,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