Commit 24b61262 authored by Nicole Cordes's avatar Nicole Cordes Committed by Christian Kuhn
Browse files

[FOLLOWUP][BUGFIX] Prevent validation from altering the field value

This follow up ensures the initialization of the value.

Resolves: #76124
Releases: master
Change-Id: Ie9981971e97d740df1df8545eb2bbd2dae0b465e
Reviewed-on: https://review.typo3.org/48084

Reviewed-by: Wouter Wolters's avatarWouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: default avatarTomita Militaru <militarutomita@gmail.com>
Reviewed-by: default avatarNikola Stojiljković <nikola.stojiljkovic@essentialdots.com>
Tested-by: default avatarNikola Stojiljković <nikola.stojiljkovic@essentialdots.com>
Reviewed-by: Andreas Fernandez's avatarAndreas Fernandez <typo3@scripting-base.de>
Reviewed-by: Christian Kuhn's avatarChristian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn's avatarChristian Kuhn <lolli@schwarzbu.ch>
parent 32206e1e
......@@ -237,7 +237,7 @@ define(['jquery', 'TYPO3/CMS/Backend/FormEngine'], function ($, FormEngine) {
* @returns {String}
*/
FormEngineValidation.validateField = function($field, value) {
value = value || $field.val();
value = value || $field.val() || '';
var rules = $field.data('formengine-validation-rules');
var markParent = false;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment