View | Details | Raw Unified | Return to bug 24975
Collapse All | Expand All

(-)a/Koha/UI/Form/Builder/Item.pm (-4 / +4 lines)
Lines 24-29 use C4::ClassSource qw( GetClassSources ); Link Here
24
24
25
use Koha::Biblios;
25
use Koha::Biblios;
26
use Koha::DateUtils qw( dt_from_string );
26
use Koha::DateUtils qw( dt_from_string );
27
use Koha::I18N;
27
use Koha::Libraries;
28
use Koha::Libraries;
28
29
29
=head1 NAME
30
=head1 NAME
Lines 208-223 sub generate_subfield_form { Link Here
208
            push @authorised_values, "";
209
            push @authorised_values, "";
209
            my $itemtypes;
210
            my $itemtypes;
210
            if ($branch_limit) {
211
            if ($branch_limit) {
211
                $itemtypes = Koha::ItemTypes->search_with_localization(
212
                $itemtypes = Koha::ItemTypes->search(
212
                    { branchcode => $branch_limit } );
213
                    { branchcode => $branch_limit } );
213
            }
214
            }
214
            else {
215
            else {
215
                $itemtypes = Koha::ItemTypes->search_with_localization;
216
                $itemtypes = Koha::ItemTypes->search;
216
            }
217
            }
217
            while ( my $itemtype = $itemtypes->next ) {
218
            while ( my $itemtype = $itemtypes->next ) {
218
                push @authorised_values, $itemtype->itemtype;
219
                push @authorised_values, $itemtype->itemtype;
219
                $authorised_lib{ $itemtype->itemtype } =
220
                $authorised_lib{ $itemtype->itemtype } =
220
                  $itemtype->translated_description;
221
                  db_t('itemtype', $itemtype->translation_key);
221
            }
222
            }
222
223
223
            if (!$value && $biblionumber) {
224
            if (!$value && $biblionumber) {
224
- 

Return to bug 24975