[Koha-bugs] [Bug 12528] Enable staff to deny message setting access to patrons on the OPAC

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Sat Dec 26 12:41:51 CET 2015


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12528

--- Comment #40 from Jonathan Druart <jonathan.druart at bugs.koha-community.org> ---
Comment on attachment 45962
  --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=45962
Bug 12528 - Enable staff to deny message setting access to patrons on the OPAC

Review of attachment 45962:
 --> (http://bugs.koha-community.org/bugzilla3/page.cgi?id=splinter.html&bug=12528&attachment=45962)
-----------------------------------------------------------------

Please provide a quick fix, it's easy :)

::: installer/data/mysql/atomicupdate/sysprefs_Bug12528.sql
@@ +1,4 @@
> +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';

Why do you want to modify the values on duplicate?
You just need to insert the new pref OPACEnhancedMessagingPreferences with the
same value as EnhancedMessagingPreferences.

::: koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/patrons.pref
@@ +157,5 @@
> +         - pref: OPACEnhancedMessagingPreferences
> +           choices:
> +               yes: Show
> +               no: "Don't show"
> +         - "patron messaging setting on the OPAC (NOTE: EnhancedMessagingPreferences must be enabled)."

No need to uppercase NOTE.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list