From f457e685156ad9caf9ec1b460252367a5fef7b3e Mon Sep 17 00:00:00 2001 From: tonnesen Date: Mon, 5 May 2003 20:57:56 +0000 Subject: [PATCH] Script was not setting cookies for branch and printer. --- circ/selectbranchprinter.pl | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/circ/selectbranchprinter.pl b/circ/selectbranchprinter.pl index 2106cc78fb..737556cf38 100644 --- a/circ/selectbranchprinter.pl +++ b/circ/selectbranchprinter.pl @@ -132,7 +132,11 @@ $template->param(headerbackgroundcolor => $headerbackgroundcolor, branchloop => \@branchloop ); -output_html_with_http_headers $query, $cookie, $template->output; +my $branchcookie=$query->cookie(-name => 'branch', -value => "$branch", -expires => '+1y'); +my $printercookie=$query->cookie(-name => 'printer', -value => "$printer", -expires => '+1y'); + +my $cookies=[$cookie,$branchcookie, $printercookie]; +output_html_with_http_headers $query, $cookies, $template->output; # Local Variables: -- 2.20.1