Jump to content

Bug: Text Form Issue


TDBF
Go to solution Solved by TDBF,

Recommended Posts

Bug: 0 values are treated as bool.

As you can see by this Matrix Form. 0 values are shown as NULL values.

Could contain: Computer, Computer Hardware, Computer Keyboard, Electronics, Hardware, Text

If I change the forum from a text to a number, the correct values are shown.

Could contain: Computer, Computer Hardware, Computer Keyboard, Electronics, Hardware, Indoors

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 by TDBF
Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...