Skip to content

Commit fbc2bda

Browse files
committed
added to test notes as well
1 parent f2fd8ac commit fbc2bda

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

dojo/test/views.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
from dojo.models import Finding, Test, Notes, \
2020
BurpRawRequestResponse, Endpoint, Stub_Finding, Finding_Template, JIRA_PKey
2121
from dojo.tools.factory import import_parser_factory
22-
from dojo.utils import get_page_items, add_breadcrumb, get_cal_event, message
22+
from dojo.utils import get_page_items, add_breadcrumb, get_cal_event, message, process_notifications
2323
from dojo.tasks import add_issue_task
2424

2525
localtz = timezone(settings.TIME_ZONE)
@@ -50,6 +50,9 @@ def view_test(request, tid):
5050
new_note.save()
5151
test.notes.add(new_note)
5252
form = NoteForm()
53+
url = request.build_absolute_uri(reverse("view_test", args=(test.id,)))
54+
title= "Test: "+ test.title
55+
process_notifications(request, new_note, url, title)
5356
messages.add_message(request,
5457
messages.SUCCESS,
5558
'Note added successfully.',

0 commit comments

Comments
 (0)