TDBF Posted May 4, 2023 Posted May 4, 2023 (edited) Bug: 0 values are treated as bool. As you can see by this Matrix Form. 0 values are shown as NULL values. If I change the forum from a text to a number, the correct values are shown. The issue is with logic in /application/core/dev/html/global/forms/text.phtml and line 11: value="{{if \is_array( $value )}}{expression="implode( ',', $value )"}{{elseif $value}}{$value}{{endif}}" Shouldn't this be? value="{{if \is_array( $value )}}{expression="implode( ',', $value )"}{{else}}{$value}{{endif}}" Edited May 4, 2023 by TDBF
Adriano Faria Posted May 4, 2023 Posted May 4, 2023 4 minutes ago, TDBF said: As you can see by this Matrix Form. 0 values are shown as NULL values. It's like that everywhere: https://invisioncommunity.com/forums/topic/472995-polls-not-working-correctly-random/ You can replicate it in Yes/No fields. TDBF 1
teraßyte Posted May 4, 2023 Posted May 4, 2023 Did you test with 4.7.9 or 4.7.10 Beta? Unless I remember wrong, this is already fixed in 4.7.10 Beta.
Adriano Faria Posted May 4, 2023 Posted May 4, 2023 My post in the topic above is from April, 12, in 4.7.9. As no one from IPS care to reply, I’m not sure it’s related.
TDBF Posted May 4, 2023 Author Posted May 4, 2023 22 minutes ago, teraßyte said: Did you test with 4.7.9 or 4.7.10 Beta? Unless I remember wrong, this is already fixed in 4.7.10 Beta. This is in 4.7.9 and has been in previous versions for well over a month or two. I haven't checked, as I don't use Beta versions.
Marc Posted May 4, 2023 Posted May 4, 2023 51 minutes ago, Adriano Faria said: My post in the topic above is from April, 12, in 4.7.9. As no one from IPS care to reply, I’m not sure it’s related. A little confused there. There was a bug report added for the issue
TDBF Posted May 4, 2023 Author Posted May 4, 2023 5 minutes ago, Marc Stridgen said: A little confused there. There was a bug report added for the issue For the issue in the OP?
Adriano Faria Posted May 4, 2023 Posted May 4, 2023 (edited) 17 minutes ago, Marc Stridgen said: There was a bug report added for the issue To the OP, I guess. I’m talking about my post, which I’m still not sure it’s related. Edited May 4, 2023 by Adriano Faria Add link
Solution TDBF Posted May 9, 2023 Author Solution Posted May 9, 2023 @Marc Stridgen Thank-you for fixing this issue! 👍 Marc 1
Recommended Posts