User tests: Successful: Unsuccessful:
Validated type=number so that the user can not set negative values to follow proper form validation.
All the fields with the -ve values will be saved successfully before this pr.
Invalid field message is displayed.
Status | New | ⇒ | Pending |
Category | ⇒ | Modules Front End |
Labels |
Added:
?
|
I have tested this item
? unsuccessfully on e77961dafter applying the patch, it's not showing "Invalid field message is displayed".This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/36091.
so form is getting submitted with -ve values?
yes
I have tested this item
Result : Module saved successfully with a negative value.
After applying patch:
Result: Module not saved and "Invalid field" is displayed.
@Ravi-chandra69 but it shouldn't be happen, according to the issue , after submitting with the negative value it should display invalid field
@Ravi-chandra69 but it shouldn't be happen, according to the issue , after submitting with the negative value it should display invalid field
This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/36091.
I think you misunderstood the expected results. Before the patch, the module gets saved with the negative values also after clicking on the save button. But, after applying the patch, if the user tries to save the module with negative values, then the "Invalid field" message is displayed which is the expected behaviour.
You can see in the video uploaded by me, when I try to save with negative value then "invalid field" is displayed.
I have tested this item
Oh ok Fine, Actually I was submitting direct from (http://localhost/joomla-4.0.5/administrator/index.php?option=com_cpanel&view=cpanel&dashboard=system) and through this it direct goes to main page without showing any error, so that's whit seems to me wrong, Now all fine, thanks @Ravi-chandra69
Status | Pending | ⇒ | Fixed in Code Base |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2021-11-23 19:01:52 |
Closed_By | ⇒ | Quy |
Thank you!
@pritam825 thanks for pointing out that the administration modules are still not getting validated. I will open a pr for the administrator module too.
I have tested this item? unsuccessfully on e77961d
after applying the patch, it's not showing "Invalid field message is displayed".
This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/36091.