Lines 85-90
if (C4::Context->preference("IndependentBranches")) {
Link Here
|
85 |
my $op = $input->param('op') || 'delete_confirm'; |
85 |
my $op = $input->param('op') || 'delete_confirm'; |
86 |
my $dbh = C4::Context->dbh; |
86 |
my $dbh = C4::Context->dbh; |
87 |
my $is_guarantor = $dbh->selectrow_array("SELECT COUNT(*) FROM borrowers WHERE guarantorid=?", undef, $member); |
87 |
my $is_guarantor = $dbh->selectrow_array("SELECT COUNT(*) FROM borrowers WHERE guarantorid=?", undef, $member); |
|
|
88 |
my $countholds = $dbh->selectrow_array("SELECT COUNT(*) FROM reserves WHERE borrowernumber=?", undef, $member); |
88 |
if ( $op eq 'delete_confirm' or $countissues > 0 or $charges or $is_guarantor ) { |
89 |
if ( $op eq 'delete_confirm' or $countissues > 0 or $charges or $is_guarantor ) { |
89 |
|
90 |
|
90 |
$template->param( |
91 |
$template->param( |
Lines 99-105
if ( $op eq 'delete_confirm' or $countissues > 0 or $charges or $is_guarantor )
Link Here
|
99 |
if ($is_guarantor) { |
100 |
if ($is_guarantor) { |
100 |
$template->param(guarantees => 1); |
101 |
$template->param(guarantees => 1); |
101 |
} |
102 |
} |
102 |
|
103 |
if($countholds > 0){ |
|
|
104 |
$template->param(ItemsOnHold => $countholds); |
105 |
} |
103 |
# This is silly written but reflect the same conditions as above |
106 |
# This is silly written but reflect the same conditions as above |
104 |
if ( not $countissues > 0 and not $charges and not $is_guarantor ) { |
107 |
if ( not $countissues > 0 and not $charges and not $is_guarantor ) { |
105 |
$template->param( |
108 |
$template->param( |
106 |
- |
|
|