Retrofit from trunk

N°1131 - Setup: Can't add options to ITIL Ticketing in update mode
* Fix the alternative selection when updating the setup
* Uncheck options when the alternatives are deselected [from revision 5067]

SVN:2.4[5068]
This commit is contained in:
Eric Espié
2017-10-23 11:40:46 +00:00
parent 614b948c82
commit 6ef39c9f5b

View File

@@ -1377,6 +1377,7 @@ function CheckChoice(sChoiceId)
else
{
$(this).attr('disabled', 'disabled');
$(this).removeAttr('checked');
}
});
});
@@ -1936,7 +1937,7 @@ EOF
$sAttributes = ' checked ';
}
$sHidden = '';
if ($bMandatory)
if ($bMandatory && $bDisabled)
{
$sAttributes = ' checked ';
$sHidden = '<input type="hidden" name="choice['.$sChoiceName.']" value="'.$sChoiceId.'"/>';