mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-22 01:58:47 +02:00
N°4408 Prevent dependent field from being triggered twice
This commit is contained in:
@@ -147,7 +147,7 @@ function WizardHelper(sClass, sFormPrefix, sState, sInitialState, sStimulus) {
|
||||
var sFieldId = this.m_oData.m_oFieldsMap[sAttCode];
|
||||
var bDisabled = $('#'+sFieldId).prop('disabled');
|
||||
//console.log('Setting #field_'+sFieldId+' to: '+this.m_oData.m_oAllowedValues[sAttCode]);
|
||||
$('#field_'+sFieldId).html(this.m_oData.m_oAllowedValues[sAttCode]);
|
||||
$('#field_'+sFieldId).replaceWith(this.m_oData.m_oAllowedValues[sAttCode]);
|
||||
if (bDisabled)
|
||||
{
|
||||
$('#'+sFieldId).prop('disabled', true);
|
||||
|
||||
Reference in New Issue
Block a user