Lines 140-152
if ( $op eq 'add_form' ) {
Link Here
|
140 |
|
140 |
|
141 |
} elsif ( $op eq 'delete_confirm' ) { |
141 |
} elsif ( $op eq 'delete_confirm' ) { |
142 |
|
142 |
|
143 |
my $context = C4::Context->new; |
|
|
144 |
my $schema = Koha::Database->new()->schema(); |
143 |
my $schema = Koha::Database->new()->schema(); |
145 |
my $itemtotal = $schema->resultset('Item')->search({ 'itype' => $itemtype_code} ); |
144 |
my $itemtotal = $schema->resultset('Item')->search({ 'itype' => $itemtype_code})->count; |
146 |
my $bibliototal = $schema->resultset('Biblioitem')->search({ 'itemtype' => $itemtype_code} ); |
145 |
my $bibliototal = $schema->resultset('Biblioitem')->search({ 'itemtype' => $itemtype_code})->count; |
147 |
|
146 |
|
148 |
$itemtotal->count; |
|
|
149 |
$bibliototal->count; |
150 |
my $overalltotal = $itemtotal + $bibliototal; |
147 |
my $overalltotal = $itemtotal + $bibliototal; |
151 |
|
148 |
|
152 |
if ($overalltotal) { |
149 |
if ($overalltotal) { |
153 |
- |
|
|