Project

General

Profile

Actions

Bug #15034

closed

Radio button validation does not work if there is only one radio button

Added by old_gunthersc about 19 years ago. Updated over 18 years ago.

Status:
Closed
Priority:
Should have
Category:
Frontend
Target version:
-
Start date:
2005-10-12
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
3.6.2
PHP Version:
4
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

validateForm() will not correctly validate radio buttons if there is only one radio button in a group. This is because fObj.length (t3lib/jsfunc.validateform.js line 87) is undefined in this case, and therefore the validation loop is never entered and "value" remains undefined.

This is easily fixed by changing the code as seen in the file attached.
(issue imported from #M1578)


Files

new_radio.txt (296 Bytes) new_radio.txt Administrator Admin, 2005-10-12 10:16
new_radio.patch (1.02 KB) new_radio.patch Administrator Admin, 2005-10-12 10:38
Actions

Also available in: Atom PDF