Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
teraßyte Posted September 13, 2022 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
teraßyte Posted November 17, 2022 Author 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
Solution Daniel F Posted November 17, 2022 Solution 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
teraßyte Posted November 17, 2022 Author Posted November 17, 2022 I see. Guess we can mark this as fixed then. 😮 SeNioR- 1
Recommended Posts