Jump to content

[BUG 4.7.2] Number helpers form checks the wrong variable


Go to solution Solved by Daniel F,

Recommended Posts

Posted

Support for a prefix was added in the template \applications\core\dev\html\global\forms\number.phtml but the code to display the prefix is checking the wrong variable on line 5:

{{if \is_string( $suffix )}}
{$prefix|raw}
{{endif}}

 

The IF should check $prefix rather than $suffix:

{{if \is_string( $prefix )}}
	{$prefix|raw}
{{endif}}

 

  • 2 months later...
Posted (edited)

Looks like this was "fixed" in 4.7.4 by completely removing the code instead of changing the variable check. 🙄

 

As it is now, there is no way to display a prefix for Number fields in a form.

Edited by teraßyte
  • Solution
Posted

To be fair, none of the form element templates shows the prefix, it's always shown as part of the row template, which wraps the form element, so the proper fix here was to remove it from the number template.

  • Recently Browsing   0 members

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