Skip to content

Commit

Permalink
Merge pull request #1047 from psyray/fix-note-add-1046
Browse files Browse the repository at this point in the history
Fix note not saving
  • Loading branch information
AnonymousWP authored Nov 21, 2023
2 parents c966cfb + 7141efe commit 5c15405
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion web/startScan/static/startScan/js/detail_scan.js
Original file line number Diff line number Diff line change
Expand Up @@ -1148,11 +1148,15 @@ function add_note_for_subdomain(subdomain_id, subdomain_name){
function add_note_for_subdomain_handler(subdomain_id){
var title = document.getElementById('subdomainTodoTitle').value;
var description = document.getElementById('subdomainTodoDescription').value;
var project = document.querySelector('input[name="current_project"]').value;
var scan_id = parseInt(document.getElementById('summary_identifier_val').value);

data = {
'title': title,
'description': description,
'subdomain_id': subdomain_id
'subdomain_id': subdomain_id,
'project': project,
'scan_history_id': scan_id
}

fetch('/api/add/recon_note/', {
Expand Down
2 changes: 1 addition & 1 deletion web/targetApp/templates/target/summary.html
Original file line number Diff line number Diff line change
Expand Up @@ -636,7 +636,7 @@ <h4 class="header-title mb-0"><span id="tasks-count"><span class="spinner-border
<div class="compose-content" id="addTaskModalTitle">
<h4 class="header-title">Add Recon Todo</h4>
<form>
<input type="hidden" name="summary_identifier" value="{{history.id}}" id="summary_identifier_val">
<input type="hidden" name="summary_identifier" value="{{target.id}}" id="summary_identifier_val">

<div class="mt-2">
<label for="todoTitle" class="form-label">Todo Title</label>
Expand Down

0 comments on commit 5c15405

Please sign in to comment.