Skip to content

Commit

Permalink
Bug/WP-364: Ticket creation emails are not sent to 'cc' emails (#1017)
Browse files Browse the repository at this point in the history
* Edited modal to warn users about CC email limitations

* Reversed changes made based on feedback

* Corrected all incorrect uses of Requestor vs Requestors

* poetry setting package mode to false to solve install issue

---------

Co-authored-by: Jeff McMillen <[email protected]>
Co-authored-by: Chandra Y <[email protected]>
  • Loading branch information
3 people authored Jan 8, 2025
1 parent 698d919 commit 0cf54fe
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion client/src/components/Tickets/TicketCreateForm.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ function TicketCreateForm({
<FormField
name="cc"
label="Cc"
description="Separate emails with commas"
description="Separate emails with commas. NOTE: Emails listed here will only receive emails on replies to tickets."
/>
</Col>
</Row>
Expand Down
2 changes: 1 addition & 1 deletion server/portal/apps/onboarding/steps/project_membership.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def send_project_request(self, request):
username=self.user.username
),
Text=ticket_text,
Requestors=self.user.email,
Requestor=self.user.email,
CF_resource=settings.RT_TAG
)
tracker.logout()
Expand Down
2 changes: 1 addition & 1 deletion server/portal/apps/tickets/api/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def post(self, request):
data = request.POST.copy()
subject = data.get('subject')
problem_description = data.get('problem_description')
cc = data.get('cc', '')
cc = data.get('cc', [])
attachments = [(f.name, ContentFile(f.read()), f.content_type)
for f in request.FILES.getlist('attachments')]
info = request.GET.get('info', "None")
Expand Down
1 change: 1 addition & 0 deletions server/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ version = "3.0.0"
description = "Django backend for the core portal."
authors = ["TACC-WMA <[email protected]>"]
readme = "README.md"
package-mode = false

[tool.poetry.dependencies]
Django = "^4.2"
Expand Down

0 comments on commit 0cf54fe

Please sign in to comment.