fix: [genericPicker] allow tagging when the ATT&CK Matrix has been

opened.
pull/4627/head
mokaddem 2019-05-13 10:10:26 +02:00
parent 2bce33b83e
commit de186f93ad
2 changed files with 2 additions and 3 deletions

View File

@ -268,7 +268,7 @@
}
function makeTagging(tagIds) {
$('#GalaxyTargetIds').val(JSON.stringify(tagIds));
$('#GalaxyViewGalaxyMatrixForm #GalaxyTargetIds').val(JSON.stringify(tagIds));
$('#GalaxyViewGalaxyMatrixForm').submit();
}

View File

@ -3641,9 +3641,8 @@ function quickSubmitGalaxyForm(cluster_ids, additionalData) {
var target_id = additionalData['target_id'];
var scope = additionalData['target_type'];
var formData = fetchFormDataAjax("/galaxies/attachMultipleClusters/" + target_id + "/" + scope);
console.log(formData);
$('#temp').html(formData);
$('#GalaxyTargetIds').val(JSON.stringify(cluster_ids));
$('#temp #GalaxyTargetIds').val(JSON.stringify(cluster_ids));
if (target_id == 'selected') {
$('#AttributeAttributeIds').val(getSelected());
}