Merge branch 'support/2.6.2' into develop

This commit is contained in:
Pierre Goiffon
2019-10-07 09:37:03 +02:00
2 changed files with 12 additions and 6 deletions

View File

@@ -2179,11 +2179,14 @@ EOF
if ((count($aAllowedValues) == 1) && ($bMandatory == 'true'))
{
// When there is only once choice, select it by default
$oPage->add_ready_script(
<<<EOF
if($value != $key)
{
$oPage->add_ready_script(
<<<EOF
$('#$iId').attr('data-validate','dependencies');
EOF
);
);
}
$sSelected = ' selected';
}
else