Bug 440955

Summary: Entering tag and chosing second selects first tag instead
Product: [Applications] digikam Reporter: Andre <andre.kdebug>
Component: Faces-WorkflowAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: caulier.gilles, metzpinguin
Priority: NOR    
Version First Reported In: 7.3.0   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed/Implemented In: 7.4.0
Sentry Crash Report:

Description Andre 2021-08-14 08:58:47 UTC
SUMMARY
Wrong tag is chosen when entering keyword that exist double times in the tree in different locations. I have observed this with "normal" tag and a tag where face tags are found below.

STEPS TO REPRODUCE
1. Create a tag Object, create Human below, so you get Object/Human
2. Create a face tag in a photoAnna, place it below Human, so you get Human/Anna
3. Select any photo, go to "Enter tag here." field, write "Human".
4. Select "Human in Object" and save tags.

OBSERVED RESULT
First tag "Human" is saved to photo,

EXPECTED RESULT
Second (selected) tag "Object/Human" is saved to photo.

SOFTWARE/OS VERSIONS
Windows: 10
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 Andre 2021-08-14 09:19:27 UTC
Some additional information, seems to have no relation to tag useed as face tag or not. So a simpler example is e.g. the combination
Object/Landscape/Forest
Object/Nature/Forest
which leads to the behaviour described, choosing "Object/Nature/Forest" actually selects "Object/Landscape/Forest".
Comment 2 Maik Qualmann 2021-08-14 09:23:23 UTC

*** This bug has been marked as a duplicate of bug 440482 ***
Comment 3 caulier.gilles 2021-08-24 08:45:38 UTC
Fixed with #440482