@@ -, +, @@ --------- authorized values (Home -> Koha Administration -> Authorized values change dropdown to WITHDRAWN) selected barcode is not withdrawn. (Home -> Tools -> Inventory/stocktaking) -- the Withdrawn column displays '0'. selected barcode is withdrawn. -- the Withdrawn column displays '1'. -- the Withdrawn column displays the descriptions as seen in steps 1-3. --- C4/Items.pm | 2 +- tools/inventory.pl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) --- a/C4/Items.pm +++ a/C4/Items.pm @@ -1127,7 +1127,7 @@ sub GetItemsForInventory { foreach (keys %$row) { # If the koha field is mapped to a marc field my ($f, $sf) = GetMarcFromKohaField("items.$_", $row->{'frameworkcode'}); - if ($f and $sf) { + if (defined $f and defined $sf) { # We replace the code with it's description my $authvals = C4::Koha::GetKohaAuthorisedValuesFromField($f, $sf, $row->{'frameworkcode'}); $row->{$_} = $authvals->{$row->{$_}} if defined $authvals->{$row->{$_}}; --- a/tools/inventory.pl +++ a/tools/inventory.pl @@ -272,7 +272,7 @@ foreach my $item ( @scanned_items ) { # If the koha field is mapped to a marc field my $fc = $item->{'frameworkcode'} || ''; my ($f, $sf) = GetMarcFromKohaField("items.$field", $fc); - if ($f and $sf) { + if (defined $f and defined $sf) { # We replace the code with it's description my $authvals = C4::Koha::GetKohaAuthorisedValuesFromField($f, $sf, $fc); if ($authvals and defined $item->{$field} and defined $authvals->{$item->{$field}}) { --