From 8154d2f79e4f10e496386b63169f6b9fac71222c Mon Sep 17 00:00:00 2001 From: erickson Date: Tue, 21 Jul 2009 21:06:50 +0000 Subject: [PATCH] setting circ.workstation when appropriate. some minor tab leveling git-svn-id: svn://svn.open-ils.org/ILS/trunk@13678 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/src/perlmods/OpenILS/Application/Circ/Circulate.pm | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/Open-ILS/src/perlmods/OpenILS/Application/Circ/Circulate.pm b/Open-ILS/src/perlmods/OpenILS/Application/Circ/Circulate.pm index 2c327777d..d433ff905 100644 --- a/Open-ILS/src/perlmods/OpenILS/Application/Circ/Circulate.pm +++ b/Open-ILS/src/perlmods/OpenILS/Application/Circ/Circulate.pm @@ -1467,6 +1467,8 @@ sub build_checkout_circ_object { $circ->target_copy( $copy->id ); $circ->usr( $patron->id ); $circ->circ_lib( $self->circ_lib ); + $circ->workstation($self->editor->requestor->wsid) + if defined $self->editor->requestor->wsid; if( $self->is_renewal ) { $circ->opac_renewal('t') if $self->opac_renewal; @@ -1477,14 +1479,14 @@ sub build_checkout_circ_object { } - # if the user provided an overiding checkout time, - # (e.g. the checkout really happened several hours ago), then - # we apply that here. Does this need a perm?? + # if the user provided an overiding checkout time, + # (e.g. the checkout really happened several hours ago), then + # we apply that here. Does this need a perm?? $circ->xact_start(clense_ISO8601($self->checkout_time)) if $self->checkout_time; - # if a patron is renewing, 'requestor' will be the patron - $circ->circ_staff($self->editor->requestor->id); + # if a patron is renewing, 'requestor' will be the patron + $circ->circ_staff($self->editor->requestor->id); $circ->due_date( $self->create_due_date($circ->duration) ) if $circ->duration; $self->circ($circ); -- 2.11.0