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

SVN:trunk[5067]
This commit is contained in:
Eric Espié
2017-10-23 11:37:13 +00:00
parent 99fd6b97db
commit d4dd300e28

View File

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