[Koha-bugs] [Bug 27684] Serial add is confused by authorized values with a code of '0'
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Thu Jul 28 12:03:27 CEST 2022
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=27684
--- Comment #8 from Didier Gautheron <didier.gautheron at biblibre.com> ---
(In reply to Jonathan Druart from comment #6)
> You need a test and certainly to modify this other place:
>
> Koha/UI/Form/Builder/Item.pm
> 122 $value = $subfield->{defaultvalue};
No, in my understanding it's already done there :
if ( $prefill_with_default_values && ( !defined($value) || $value eq '' ) ) {
$value = $subfield->{defaultvalue} if !$item->{itemnumber}; # apply
defaultvalue only to new items
it's only set $value if it's undefined or an empty string.
Unlike 0 empty string for a VA code is an issue in a lot of place.
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list