Lines 199-206
if ( $op eq 'delete_confirm' ) {
Link Here
|
199 |
# if requested, create basket group, close it and attach the basket |
199 |
# if requested, create basket group, close it and attach the basket |
200 |
if ($query->param('createbasketgroup')) { |
200 |
if ($query->param('createbasketgroup')) { |
201 |
my $branchcode; |
201 |
my $branchcode; |
202 |
if(C4::Context->userenv and C4::Context->userenv->{'branch'} |
202 |
if(C4::Context->userenv and C4::Context->userenv->{'branch'}) { |
203 |
and C4::Context->userenv->{'branch'} ne "NO_LIBRARY_SET") { |
|
|
204 |
$branchcode = C4::Context->userenv->{'branch'}; |
203 |
$branchcode = C4::Context->userenv->{'branch'}; |
205 |
} |
204 |
} |
206 |
my $basketgroupid = NewBasketgroup( { name => $basket->{basketname}, |
205 |
my $basketgroupid = NewBasketgroup( { name => $basket->{basketname}, |
Lines 543-550
sub edi_close_and_order {
Link Here
|
543 |
if ( $query->param('createbasketgroup') ) { |
542 |
if ( $query->param('createbasketgroup') ) { |
544 |
my $branchcode; |
543 |
my $branchcode; |
545 |
if ( C4::Context->userenv |
544 |
if ( C4::Context->userenv |
546 |
and C4::Context->userenv->{'branch'} |
545 |
and C4::Context->userenv->{'branch'} ) |
547 |
and C4::Context->userenv->{'branch'} ne "NO_LIBRARY_SET" ) |
|
|
548 |
{ |
546 |
{ |
549 |
$branchcode = C4::Context->userenv->{'branch'}; |
547 |
$branchcode = C4::Context->userenv->{'branch'}; |
550 |
} |
548 |
} |