Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix duplicated search result in advanced search #8485

Merged
merged 2 commits into from
Aug 28, 2024

Conversation

Leilei332
Copy link
Contributor

@Leilei332 Leilei332 commented Aug 5, 2024

This PR fixes the appearance of duplicated search results in advanced search when more than one tiddlers are tagged with $:/tags/SearchResults.

图片

Copy link

github-actions bot commented Aug 5, 2024

Confirmed: Leilei332 has already signed the Contributor License Agreement (see contributing.md)

@Leilei332 Leilei332 changed the title Fix multiple search result in advanced search Fix duplicated search result in advanced search Aug 5, 2024
@Jermolene
Copy link
Member

Thanks @Leilei332 this PR fixes a problem that appears to have been introduced in #7889. I wonder if the code might be less confusing if we adopted the conditional shortcut? For consistency we'd need to do it to all the related advanced search templates.

@Leilei332 Leilei332 marked this pull request as draft August 5, 2024 13:33
@Leilei332
Copy link
Contributor Author

Leilei332 commented Aug 7, 2024

I think we had better use the $list-empty widget to avoid confusion.

After testing in The uglifier, I found that the advanced search worked well. Looks like the uglify plugin has been updated to support 5.3.x versions. IMO there is no need to worry about backward capability for it.

@Jermolene
Copy link
Member

Thanks @Leilei332

@Jermolene Jermolene merged commit 6b13614 into TiddlyWiki:master Aug 28, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants