Bug 431774

Summary: Search does not work for specific tag and folder
Product: [Applications] digikam Reporter: m*sh <hy>
Component: Searches-AdvancedAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: caulier.gilles, metzpinguin
Priority: NOR    
Version First Reported In: 7.2.0   
Target Milestone: ---   
Platform: Debian unstable   
OS: Linux   
Latest Commit: Version Fixed/Implemented In: 7.5.0
Sentry Crash Report:

Description m*sh 2021-01-18 11:09:46 UTC
Search does not work properly


STEPS TO REPRODUCE
1. Open advanced search
2. check a tag (in my case flora which has sub-tags)
3. check one folder/album (that has lots of images with this tag)
4. hit "try" or "ok"

OBSERVED RESULT
no images

EXPECTED RESULT
all images in the specified folder with the tag "flora" (there are hundreds)


Linux/KDE Plasma: 5.20.4
KDE Framework 5.77.0
Kernel 5.10.4
Comment 1 Maik Qualmann 2021-01-18 12:16:57 UTC
No problem here. Before doing this, reset the advanced search with the reset button. The problem is that the last entry in the quick search is taken over when opening the advanced search and is therefore also a condition of the search. At the moment this is an intended behavior, but since we're getting more bugs like this one, I'm thinking about not get the quick search when opening the advanced search.

Maik
Comment 2 caulier.gilles 2022-01-08 11:13:06 UTC
Hi M*sh and happy new year,

Did you read the previous comment from Maik in this thread ?
Can you reproduce the problem with last digiKam 7.4.0 ?

Best regards

Gilles Caulier
Comment 3 Maik Qualmann 2022-01-08 15:37:33 UTC
Git commit b9c4b0e7f04d34bd3ccc6dd60d2d47298b8a1c3d by Maik Qualmann.
Committed on 08/01/2022 at 15:36.
Pushed by mqualmann into branch 'master'.

separate buttons for new and edit Advanced Search
Related: bug 408788
FIXED-IN: 7.5.0

M  +2    -2    NEWS
M  +24   -9    core/utilities/searchwindow/searchtabheader.cpp
M  +2    -1    core/utilities/searchwindow/searchtabheader.h

https://invent.kde.org/graphics/digikam/commit/b9c4b0e7f04d34bd3ccc6dd60d2d47298b8a1c3d