Fix "Syntax error, unrecognized expression" during object editing due to object class being already JSON encoded

This commit is contained in:
Molkobain
2023-05-04 20:43:33 +02:00
parent ae8012c75f
commit 1271bb31cb

View File

@@ -2275,7 +2275,7 @@ JS
);
break;
// In 3.0 not used for activity panel but kept for bulk modify and bulk-event extension
// Since 3.0 not used for activity panel but kept for bulk modify and bulk-event extension
case 'CaseLog':
$sInputType = self::ENUM_INPUT_TYPE_HTML_EDITOR;
$aStyles = array();
@@ -5767,7 +5767,7 @@ EOF
oOwnershipLockModal.text(data.popup_message);
oOwnershipLockModal.dialog('open');
}
$('[data-role="ibo-object-details"][data-object-class="{$sJSClass}"][data-object-id="{$iKey}"] .ibo-toolbar .ibo-button:not([name="cancel"])').prop('disabled', true);
$('[data-role="ibo-object-details"][data-object-class={$sJSClass}][data-object-id="{$iKey}"] .ibo-toolbar .ibo-button:not([name="cancel"])').prop('disabled', true);
clearInterval(hOwnershipLockHandlerInterval);
}
else if ((data.operation == 'lost') || (data.operation == 'expired'))
@@ -5778,7 +5778,7 @@ EOF
oOwnershipLockModal.text(data.popup_message);
oOwnershipLockModal.dialog('open');
}
$('[data-role="ibo-object-details"][data-object-class="{$sJSClass}"][data-object-id="{$iKey}"] .ibo-toolbar .ibo-button:not([name="cancel"])').prop('disabled', true);
$('[data-role="ibo-object-details"][data-object-class={$sJSClass}][data-object-id="{$iKey}"] .ibo-toolbar .ibo-button:not([name="cancel"])').prop('disabled', true);
clearInterval(hOwnershipLockHandlerInterval);
}
}, 'json');