Bugzilla – Attachment 40544 Details for
Bug 14440
get_template_and_user can not have an empty template_name
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
bug 14440 - work around for empty tt filenames
bug-14440---work-around-for-empty-tt-filenames.patch (text/plain), 2.45 KB, created by
Liz Rea
on 2015-06-23 23:23:49 UTC
(
hide
)
Description:
bug 14440 - work around for empty tt filenames
Filename:
MIME Type:
Creator:
Liz Rea
Created:
2015-06-23 23:23:49 UTC
Size:
2.45 KB
patch
obsolete
>From 9fe4333436ed8ef8e508ef14c8424ec11a4d6ae2 Mon Sep 17 00:00:00 2001 >From: Liz Rea <liz@catalyst.net.nz> >Date: Wed, 24 Jun 2015 11:20:58 +1200 >Subject: [PATCH] bug 14440 - work around for empty tt filenames > >This is a work around for the bug of not accepting empty template names. > >To test: > >Make sure all of these functions still work. >--- > acqui/updatesupplier.pl | 2 +- > opac/opac-ratings.pl | 2 +- > tools/quotes/quotes-upload_ajax.pl | 2 +- > tools/quotes/quotes_ajax.pl | 2 +- > 4 files changed, 4 insertions(+), 4 deletions(-) > >diff --git a/acqui/updatesupplier.pl b/acqui/updatesupplier.pl >index 65093d8..36886d3 100755 >--- a/acqui/updatesupplier.pl >+++ b/acqui/updatesupplier.pl >@@ -60,7 +60,7 @@ use CGI qw ( -utf8 ); > > my $input=new CGI; > my ($template, $loggedinuser, $cookie) = get_template_and_user( >- { template_name => "", >+ { template_name => "/errors/404.tt", > query => $input, > type => "intranet", > authnotrequired => 0, >diff --git a/opac/opac-ratings.pl b/opac/opac-ratings.pl >index bb1297e..e72686b 100755 >--- a/opac/opac-ratings.pl >+++ b/opac/opac-ratings.pl >@@ -42,7 +42,7 @@ my $a = $query->Vars; > #### $a > my ( $template, $loggedinuser, $cookie ) = get_template_and_user( > { >- template_name => "", >+ template_name => "/errors/404.tt", > query => $query, > type => "opac", > authnotrequired => 0, # auth required to add tags >diff --git a/tools/quotes/quotes-upload_ajax.pl b/tools/quotes/quotes-upload_ajax.pl >index 93bbfbe..054dcf2 100755 >--- a/tools/quotes/quotes-upload_ajax.pl >+++ b/tools/quotes/quotes-upload_ajax.pl >@@ -34,7 +34,7 @@ my $dbh = C4::Context->dbh; > > my ( $template, $borrowernumber, $cookie ) = get_template_and_user( > { >- template_name => "", >+ template_name => "/errors/404.tt", > query => $cgi, > type => "intranet", > authnotrequired => 0, >diff --git a/tools/quotes/quotes_ajax.pl b/tools/quotes/quotes_ajax.pl >index d08178f..eadf622 100755 >--- a/tools/quotes/quotes_ajax.pl >+++ b/tools/quotes/quotes_ajax.pl >@@ -33,7 +33,7 @@ my $sort_columns = ["id", "source", "text", "timestamp"]; > > my ( $template, $borrowernumber, $cookie ) = get_template_and_user( > { >- template_name => "", >+ template_name => "/errors/404.tt", > query => $cgi, > type => "intranet", > authnotrequired => 0, >-- >1.9.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 14440
:
40533
|
40544
|
40546
|
40559
|
40595
|
40600
|
40601
|
40602
|
40607
|
40608
|
40609
|
40620
|
40621
|
40622
|
40648