From: Ian Walls <[email protected]>

If Fast Add is accessed from either the circulation homepage or cataloguing,
it should stay on the additem.pl page after saving the first item.  Only when
a Fast Add is done in the middle of a circulation transaction should it redirect
back to circ/circulation.pl to complete that transaction.

This patch adds a conditional check for a borrowernumber input param; the 
presense
of such implies we're in the middle of a checkout.  It's absense implies we 
should
remain on additem.pl

Signed-off-by: Nicole C. Engard <[email protected]>
---
 cataloguing/additem.pl |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/cataloguing/additem.pl b/cataloguing/additem.pl
index 275e236..0db2d2d 100755
--- a/cataloguing/additem.pl
+++ b/cataloguing/additem.pl
@@ -422,7 +422,7 @@ if ($op eq "additem") {
            undef($itemrecord);
        }
     }  
-    if ($frameworkcode eq 'FA'){
+    if ($frameworkcode eq 'FA' && $input->param('borrowernumber')){
        my $redirect_string = 'borrowernumber=' . 
uri_escape($input->param('borrowernumber')) .
          '&barcode=' . uri_escape($input->param('barcode'));
        $redirect_string .= '&duedatespec=' . 
uri_escape($input->param('duedatespec')) . 
-- 
1.7.2.3

_______________________________________________
Koha-patches mailing list
[email protected]
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-patches
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to