teraßyte Posted September 13, 2022 Share Posted September 13, 2022 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}} SeNioR- and Afrodude 2 Link to comment Share on other sites More sharing options...
teraßyte Posted November 17, 2022 Author Share Posted November 17, 2022 (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 November 17, 2022 by teraßyte Link to comment Share on other sites More sharing options...
Solution Daniel F Posted November 17, 2022 Solution Share Posted November 17, 2022 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. SeNioR- 1 Link to comment Share on other sites More sharing options...
teraßyte Posted November 17, 2022 Author Share Posted November 17, 2022 I see. Guess we can mark this as fixed then. 😮 SeNioR- 1 Link to comment Share on other sites More sharing options...
Recommended Posts