- Issue created by @stefan.korn
- Merge request !35Issue #3493327: String "0" not printed as suggestion suffix β (Merged) created by stefan.korn
- π¦πΉAustria drunken monkey Vienna, Austria
drunken monkey β made their first commit to this issueβs fork.
- π¦πΉAustria drunken monkey Vienna, Austria
Great catch, thanks a lot for reporting this and already providing an MR.
Based on a quick test, I think all of those should actually be checked with⦠is not empty
, it seems like'0'
(or0
) would be a valid value for all of those (though more likely for some than for others).
I amended the MR. Please test/review! - π¦πΉAustria drunken monkey Vienna, Austria
*bump* Please test/review so I can merge this.
- π©πͺGermany stefan.korn Jossgrund
@drunkenmonkey: Sorry, missed the hint about test and review.
I can confirm that it works for me as expected now with the patch, though I am probably only really testing the suffix/prefix part.
Regarding the other variables, I do not have a case to test on.
In principle, I think the "not empty" check is preventing ambiguousness and should be favored. Only with the result count I am in doubt if a value of "0" should be considered empty or is expected to be empty? But is it possible at all to have a result count "0" and appear in the autocomplete suggetions at all?
-
drunken monkey β
committed 96961acc on 8.x-1.x authored by
stefan.korn β
Issue #3493327 by stefan.korn, drunken monkey: Fixed suggestion template...
-
drunken monkey β
committed 96961acc on 8.x-1.x authored by
stefan.korn β
- π¦πΉAustria drunken monkey Vienna, Austria
In principle, I think the "not empty" check is preventing ambiguousness and should be favored. Only with the result count I am in doubt if a value of "0" should be considered empty or is expected to be empty? But is it possible at all to have a result count "0" and appear in the autocomplete suggetions at all?
Itβs admittedly unlikely, but since the value can be
NULL
it should be assumed that0
represents a valid count that should be reported, I think. If anything, Iβd just stick with this for the sake of consistency.I merged the MR now. Thanks a lot again!
- Status changed to Fixed
18 days ago 2:49pm 16 February 2025 Automatically closed - issue fixed for 2 weeks with no activity.