Skip to content

Fix "show links with more than 0 clicks"#3977

Merged
ozh merged 4 commits intomasterfrom
fix-3975
Sep 8, 2025
Merged

Fix "show links with more than 0 clicks"#3977
ozh merged 4 commits intomasterfrom
fix-3975

Conversation

@ozh
Copy link
Copy Markdown
Member

@ozh ozh commented Sep 7, 2025

Fixes #3975

I don't even understand how this was considered fixed at some point :)

Fixes #3975

I don't even understand how this was considered fixed at some point :)
@ozh
Copy link
Copy Markdown
Member Author

ozh commented Sep 7, 2025

WIP - do not merge.

It fixes the view when you ask specifically for "more than 0 clicks", but breaks the view if you ask for something else without specifying number of clicks (PR 3589)

- searching for "more than 0 clicks" works
- searching for something else doesn't enforce "more than 0 clicks"

Really fixes #3975 and #3460 without one canceling the other, duh.
@ozh
Copy link
Copy Markdown
Member Author

ozh commented Sep 7, 2025

👍 -- someone wants to approve this ? should I merge myself ? it's been so long :)

Copy link
Copy Markdown
Member

@dgw dgw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It certainly is easier to read this way.

Having replaced this function on my instance (1.10.1) with the patch, it seems to work. "more" than 0 clicks correctly omits 0-click links, and an empty text box brings them back.

@dgw
Copy link
Copy Markdown
Member

dgw commented Sep 7, 2025

Let's give @LeoColomb a day or two in case he wants to weigh in, but I think it's good to go.

Copy link
Copy Markdown
Member

@LeoColomb LeoColomb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Despite a cosmetic suggestion, looks all good for me 👍

(I've seen the other discussions; I'll reply later this week. Too busy atm 😭)

ozh and others added 2 commits September 8, 2025 19:42
Co-authored-by: Léo Colombaro <LeoColomb@users.noreply.github.com>
@ozh ozh merged commit 4340a65 into master Sep 8, 2025
10 checks passed
@ozh ozh deleted the fix-3975 branch September 8, 2025 19:08
tomtenuta pushed a commit to tomtenuta/YOURLS that referenced this pull request Nov 4, 2025
* Fix "show links with more than 0 clicks"

Fixes YOURLS#3975

I don't even understand how this was considered fixed at some point :)

* Fix :
- searching for "more than 0 clicks" works
- searching for something else doesn't enforce "more than 0 clicks"

Really fixes YOURLS#3975 and YOURLS#3460 without one canceling the other, duh.

* Update includes/Views/AdminParams.php

Co-authored-by: Léo Colombaro <LeoColomb@users.noreply.github.com>

---------

Co-authored-by: Léo Colombaro <LeoColomb@users.noreply.github.com>
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.

Search filter of "Show links with more than 0 clicks" returns URLs with 0 clicks too

3 participants