Bug 12528 - fix problem when insert OPACEnhancedMessagingPreferences
authorBouzid Fergani <bouzid.fergani@inlibro.com>
Mon, 28 Dec 2015 13:59:21 +0000 (08:59 -0500)
committerKyle M Hall <kyle@bywatersolutions.com>
Fri, 29 Apr 2016 17:54:10 +0000 (17:54 +0000)
Signed-off-by: Aleisha <aleishaamohia@hotmail.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
installer/data/mysql/atomicupdate/sysprefs_Bug12528.sql
koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/patrons.pref

index b711e47..db5275d 100644 (file)
@@ -1,4 +1,2 @@
-INSERT INTO systempreferences ( variable, value, options, explanation,type ) VALUES
-('OPACEnhancedMessagingPreferences', '1', NULL, 'If ON, show patrons messaging setting on the OPAC.', 'YesNo') ON DUPLICATE KEY UPDATE value ='1';
-INSERT INTO systempreferences ( variable, value, options, explanation,type ) VALUES
-('EnhancedMessagingPreferences', '1', NULL, 'If ON, allows patrons to select to receive additional messages about items due or nearly due.', 'YesNo') ON DUPLICATE KEY UPDATE value ='1';
+INSERT INTO systempreferences ( value, variable, options, explanation,type )
+select value ,'OPACEnhancedMessagingPreferences', NULL, 'If ON, allows patrons to select to receive additional messages about items due or nearly due.', 'YesNo' from systempreferences where variable='EnhancedMessagingPreferences';
index e5f8ec4..f4c7a88 100644 (file)
@@ -164,7 +164,7 @@ Patrons:
            choices:
                yes: Show
                no: "Don't show"
-         - "patron messaging setting on the OPAC (NOTE: EnhancedMessagingPreferences must be enabled)."
+         - "patron messaging setting on the OPAC (note: EnhancedMessagingPreferences must be enabled)."
 
     "Norwegian patron database":
      -