No Code Attached Yet
avatar PhilETaylor
PhilETaylor
30 May 2021

Steps to reproduce the issue

forked from #34284

If you manipulate the HTML option value in a select list which has in its field definition validate="options", and set the value="" when no "" value existed in the options previously, the validation will still PASS when the form is submitted! This is not correct, because this is a manipulated value, and "" did not exist in the options to choose from.

Expected result

If you have a field, which has validate="options" in its XML definition. Renders something like:

<select>
  <option value="this">THIS</option>
  <option value="that">THAT</option>
</select>

and you change that to be <option value="">THAT</option> by manipulating the HMTL of the page and then click save, the validation should FAIL because "" is not this or that

Actual result

Passes validation

System information (as much as possible)

Additional comments

avatar PhilETaylor PhilETaylor - open - 30 May 2021
avatar joomla-cms-bot joomla-cms-bot - change - 30 May 2021
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 30 May 2021
avatar PhilETaylor PhilETaylor - change - 30 May 2021
Title
[4] Options validation allows manipulation to empty value
[4] Options validation rule allows manipulation to empty value
avatar PhilETaylor PhilETaylor - edited - 30 May 2021
avatar PhilETaylor PhilETaylor - change - 30 May 2021
The description was changed
avatar PhilETaylor PhilETaylor - edited - 30 May 2021
avatar PhilETaylor PhilETaylor - change - 7 Mar 2022
Status New Closed
Closed_Date 0000-00-00 00:00:00 2022-03-07 18:36:58
Closed_By PhilETaylor
Labels Added: No Code Attached Yet
Removed: ?
avatar PhilETaylor PhilETaylor - close - 7 Mar 2022

Add a Comment

Login with GitHub to post a comment