From 6247c38600da4effba9f847a7ae7c8f1d6d9563d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jean-Andr=C3=A9=20Santoni?= Date: Fri, 8 Jan 2010 11:29:21 +0100 Subject: [PATCH] [MT2370] Basket header workflow improvement The "Data Recorded" page was useless, I removed it. --- acqui/basketheader.pl | 9 +++++---- .../prog/en/modules/acqui/basketheader.tmpl | 6 +----- 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/acqui/basketheader.pl b/acqui/basketheader.pl index 58e5773332..47f210e2f5 100755 --- a/acqui/basketheader.pl +++ b/acqui/basketheader.pl @@ -112,13 +112,14 @@ if ( $op eq 'add_form' ) { #End Edit } elsif ( $op eq 'add_validate' ) { #we are confirming the changes, save the basket - $template->param(add_validate => 1); + my $basketno; if ( $is_an_edit ) { + $basketno = $input->param('basketno'); ModBasketHeader($input->param('basketno'),$input->param('basketname'),$input->param('basketnote'),$input->param('basketbooksellernote'),$input->param('basketcontractnumber')); - $template->param( basketno => $basketno ); } else { #New basket - my $basketno = NewBasket($booksellerid, $loggedinuser, $input->param('basketname'), $input->param('basketnote'), $input->param('basketbooksellernote'), $input->param('basketcontractnumber')); - $template->param( basketno => $basketno ); + $basketno = NewBasket($booksellerid, $loggedinuser, $input->param('basketname'), $input->param('basketnote'), $input->param('basketbooksellernote'), $input->param('basketcontractnumber')); } + print $input->redirect('basket.pl?basketno='.$basketno); + exit 0; } output_html_with_http_headers $input, $cookie, $template->output; diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basketheader.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basketheader.tmpl index 91e67739a0..1fb9d4f54f 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basketheader.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basketheader.tmpl @@ -94,7 +94,7 @@ li.list2 { "> Edit basket '' - Add a basket + add a basket to @@ -155,10 +155,6 @@ li.list2 { - -

Data recorded

- "> -
-- 2.39.5