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>
(cherry picked from commit 01526ef545)
Signed-off-by: Paul Derscheid <paul.derscheid@lmscloud.de>
(cherry picked from commit 4efb86aec8)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
This commit is contained in:
Marcel de Rooy 2025-06-12 11:15:09 +02:00 committed by Fridolin Somers
parent 31922cb5cf
commit 4077d3f156
No known key found for this signature in database
GPG Key ID: 9A8E73E2A8B96537
1 changed files with 2 additions and 1 deletions

View File

@ -1645,7 +1645,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} );
}