Revert "N°7559 - Fix radio buttons in template fields"

This reverts commit dc8f676f75.
This reverts commit e9ef48b79c.
This commit is contained in:
Molkobain
2024-07-09 11:28:37 +02:00
parent 01ab3be8d3
commit b2b5aeb08b

View File

@@ -95,20 +95,7 @@ $(function()
value = $(oElem).val();
}
}
else if( $(oElem).is(':radio'))
{
let nameRadioButton= $(oElem).prop('name');
let radioCheckProp = $('[name='+nameRadioButton+']:checked');
if(radioCheckProp.length === 1)
{
value = radioCheckProp.val();
}
else
{
value = "";
}
}
else if($(oElem).is(':checkbox'))
else if($(oElem).is(':checkbox') || $(oElem).is(':radio'))
{
if(value === null)
{