X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=circ%2Ftransferstoreceive.pl;h=c070a171eaa51973762f60481139535a72d8898f;hb=acd431f55d431b2f8aaa24b88face28816ac9403;hp=8f652608b3cdd7f83bda95092610e6d818527814;hpb=82b8c496fdb642d678aed4499b2fceb739e65e64;p=koha.git diff --git a/circ/transferstoreceive.pl b/circ/transferstoreceive.pl index 8f652608b3..c070a171ea 100755 --- a/circ/transferstoreceive.pl +++ b/circ/transferstoreceive.pl @@ -24,7 +24,7 @@ use C4::Context; use C4::Output; use C4::Branch; use C4::Auth; -use C4::Dates; +use C4::Dates qw/format_date/; use C4::Biblio; use C4::Circulation; use C4::Members; @@ -42,19 +42,13 @@ my $input = new CGI; my $theme = $input->param('theme'); # only used if allowthemeoverride is set my $itemnumber = $input->param('itemnumber'); - -# if we have a resturn of the form to delete the transfer, we launch the subrroutine -if ($itemnumber) { - C4::Circulation::Circ2::DeleteTransfer($itemnumber); -} - my ( $template, $loggedinuser, $cookie ) = get_template_and_user( { template_name => "circ/transferstoreceive.tmpl", query => $input, type => "intranet", authnotrequired => 0, - flagsrequired => { circulate => 1 }, + flagsrequired => { circulate => "circulate_remaining_permissions" }, debug => 1, } ); @@ -124,7 +118,8 @@ foreach my $br ( keys %$branches ) { $template->param( branchesloop => \@branchesloop, - show_date => format_date(join("-", &Today)), + show_date => format_date(C4::Dates->today('iso')), + dateformat => C4::Context->preference("dateformat"), ); output_html_with_http_headers $input, $cookie, $template->output;