Bug 17989: Final changes
authorMarcel de Rooy <m.de.rooy@rijksmuseum.nl>
Wed, 25 Jan 2017 14:32:01 +0000 (15:32 +0100)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Wed, 1 Nov 2017 16:10:18 +0000 (13:10 -0300)
[1] The template sco/printslip.tt is in the regular modules directory.
Should not be prefixed with a slash.

Test plan:
[1] Try to find another occurrence just like the one corrected in
    sco/printslip.pl where an absolute path is passed to gettemplate or
    get_template_and_user. I already tried several regex variations
    while git grepping template_name, but you may still find one..

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Amended: Removed the changes for svc/members/search. Not needed.
Commit message adjusted accordingly.

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
opac/sco/printslip.pl

index b85b8f5..e94077d 100755 (executable)
@@ -45,7 +45,7 @@ my $error = $input->param('error');
 # patrons still need to be able to print receipts
 my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
     {
-        template_name   => "/sco/printslip.tt",
+        template_name   => "sco/printslip.tt",
         query           => $input,
         type            => "opac",
     }