TDBF Posted November 6, 2023 Share Posted November 6, 2023 I have just upgraded my test and live installs from Version 4.7.12 to Version 4.7.14, and I have issues with Form Text not displaying 0 values correctly. 0 seem to be treated as NULL or Empty values now. Text Form on 4.7.12 Same Form 4.7.14 There were no other changes to the code or the values (database) expect from changing from Invision 4.7.12 to 4.7.14. $form->add( new \IPS\Helpers\Form\Text( 'fixture_goals_home', $fixture->goals_home, FALSE, [], NULL, NULL, NULL, 'fixture_home_ft_score' ) ); $form->add( new \IPS\Helpers\Form\Text( 'fixture_goals_away', $fixture->goals_away, FALSE, [], NULL, NULL, NULL, 'fixture_away_ft_score' ) ); $form->add( new \IPS\Helpers\Form\Text( 'fixture_home_ft_score', $fixture->home_ft_score, FALSE, [], NULL, NULL, NULL, 'fixture_home_ft_score' ) ); $form->add( new \IPS\Helpers\Form\Text( 'fixture_away_ft_score', $fixture->away_ft_score, FALSE, [], NULL, NULL, NULL, 'fixture_away_ft_score' ) ); $form->add( new \IPS\Helpers\Form\Text( 'fixture_home_ht_score', $fixture->home_ht_score, FALSE, [], NULL, NULL, NULL, 'fixture_home_ht_score' ) ); $form->add( new \IPS\Helpers\Form\Text( 'fixture_away_ht_score', $fixture->away_ht_score, FALSE, [], NULL, NULL, NULL, 'fixture_away_ht_score' ) ); If I change the above to use Form Number instead $form->add( new \IPS\Helpers\Form\Number( 'fixture_goals_home', $fixture->goals_home, FALSE, [], NULL, NULL, NULL, 'fixture_home_ft_score' ) ); $form->add( new \IPS\Helpers\Form\Number( 'fixture_goals_away', $fixture->goals_away, FALSE, [], NULL, NULL, NULL, 'fixture_away_ft_score' ) ); $form->add( new \IPS\Helpers\Form\Number( 'fixture_home_ft_score', $fixture->home_ft_score, FALSE, [], NULL, NULL, NULL, 'fixture_home_ft_score' ) ); $form->add( new \IPS\Helpers\Form\Number( 'fixture_away_ft_score', $fixture->away_ft_score, FALSE, [], NULL, NULL, NULL, 'fixture_away_ft_score' ) ); $form->add( new \IPS\Helpers\Form\Number( 'fixture_home_ht_score', $fixture->home_ht_score, FALSE, [], NULL, NULL, NULL, 'fixture_home_ht_score' ) ); $form->add( new \IPS\Helpers\Form\Number( 'fixture_away_ht_score', $fixture->away_ht_score, FALSE, [], NULL, NULL, NULL, 'fixture_away_ht_score' ) ); Then the form values are correct. Link to comment Share on other sites More sharing options...
Marc Posted November 6, 2023 Share Posted November 6, 2023 Thank you for bringing this issue to our attention! I can confirm this should be further reviewed and I have logged an internal bug report for our development team to investigate and address as necessary, in a future maintenance release. TDBF and SeNioR- 1 1 Link to comment Share on other sites More sharing options...
TDBF Posted January 16 Author Share Posted January 16 On 11/6/2023 at 2:28 PM, Marc Stridgen said: Thank you for bringing this issue to our attention! I can confirm this should be further reviewed and I have logged an internal bug report for our development team to investigate and address as necessary, in a future maintenance release. Can you let me know if this bug has been fixed in the next release? SeNioR- 1 Link to comment Share on other sites More sharing options...
Marc Posted January 17 Share Posted January 17 It is indeed in the latest beta TDBF 1 Link to comment Share on other sites More sharing options...
Solution Marc Posted January 24 Solution Share Posted January 24 This issue has been resolved in the recently released 4.7.15 version. Please update your site if you are still experiencing the issue, and let us know if you see any reoccurrence. TDBF 1 Link to comment Share on other sites More sharing options...
TDBF Posted January 25 Author Share Posted January 25 Hi Marc, I can confirm that this version has fixed this issue. Cheers! 👍 Link to comment Share on other sites More sharing options...
Recommended Posts