]> git.koha-community.org Git - koha.git/commit
Bug 28193: OpacLoginInstructions news block broken by Bug 20168
authorOwen Leonard <oleonard@myacpl.org>
Thu, 22 Apr 2021 14:33:25 +0000 (14:33 +0000)
committerFridolin Somers <fridolin.somers@biblibre.com>
Fri, 30 Apr 2021 08:33:29 +0000 (10:33 +0200)
commitecdcbd74704ac82d5beba08604e672ef3de77a8f
tree25e26f2db31694503ea6bec4b3559c8594cc3177
parentd85f9bc416f714488595a9142b6be919509dabf2
Bug 28193: OpacLoginInstructions news block broken by Bug 20168

This patch fixes a regression which was introduced by Bug 20168, causing
the OpacLoginInstructions template code to revert back to the old system
preference behavior. This patch returns the correct markup.

To test, apply the patch and view the OPAC login page
(/cgi-bin/koha/opac-user.pl)

 - With no news entry for OpacLoginInstructions you should see the
   default: A block of text with two headings, "Don't have a password
   yet?" and "Don't have a library card?"
 - Go to Tools -> News and create an entry for OpacLoginInstructions.
 - Return to the OPAC and confirm that your custom text appears.
 - Try updating/installing another translation and adding a different
   news entry for that language. Confirm that the correct entry appears.

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit ee4755c97404e464b8d9af6cd2f253201c1f21d7)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-auth.tt