[Koha-bugs] [Bug 14440] get_template_and_user can not have an empty template_name

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Jun 24 21:51:01 CEST 2015


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

Indranil Das Gupta <indradg at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #40546|0                           |1
        is obsolete|                            |

--- Comment #11 from Indranil Das Gupta <indradg at gmail.com> ---
Created attachment 40600
  -->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=40600&action=edit
Bug 14440 - get_template_and_user can not have an empty template_name
(opac-ratings.pl)

Since Bug 14408, the method get_template_and_user can not have an empty
template_name.
Pages calling with an empty value should use C4::Auth::checkauth()

This patch corrects opac/opac-ratings.pl

Test plan :
- Apply patch
- Set sysopref OpacStarRatings to 'results and details'
- Disable Javascipt on your browser (otherwise it will use ajax)
- Login at OPAC
- Go to a record
- Click on a button left of 'Rate me' to choose a rating, ie 4
- Click on 'Rate me'
=> The page is reloaded and you see 'your rating: 4'
- Loggout from OPAC
- Try to access URL : http://<serveur>/cgi-bin/koha/opac-ratings.pl
=> You see the loggin page

Signed-off-by: Indranil Das Gupta (L2C2 Technologies) <indradg at gmail.com>

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


More information about the Koha-bugs mailing list