Bug 40119: (QA follow-up) Small additional comment

The reference to this bug report may be helpful to understand
later why we did so.

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
Marcel de Rooy 2025-06-12 11:15:09 +02:00 committed by Lucas Gass
parent 5eeb04be97
commit 01526ef545
No known key found for this signature in database
GPG Key ID: 60B447398B0D36CA
1 changed files with 2 additions and 1 deletions

View File

@ -1749,7 +1749,8 @@ sub merge {
if ( exists $controlled_ind->{sub2} ) { # thesaurus info
if ( defined $controlled_ind->{sub2} ) {
# Add or replace
# Add or replace when not empty. If empty, an existing
# $2 value is retained (see also bug 40119).
if ( $controlled_ind->{sub2} ne q{} ) {
$field_to->update( 2 => $controlled_ind->{sub2} );
}