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

(-)a/cataloguing/additem.pl (-2 / +4 lines)
Lines 164-170 sub generate_subfield_form { Link Here
164
        }
164
        }
165
165
166
        my $default_location = C4::Context->preference('NewItemsDefaultLocation');
166
        my $default_location = C4::Context->preference('NewItemsDefaultLocation');
167
        if ( !$value && $subfieldlib->{kohafield} eq 'items.location' && $default_location ) {
167
        if ( !$item # $item is defined only on item creation
168
            && ! $value
169
            && $subfieldlib->{kohafield} eq 'items.location'
170
            && $default_location ) {
168
            $value = $default_location;
171
            $value = $default_location;
169
        }
172
        }
170
173
171
- 

Return to bug 28895