-
Notifications
You must be signed in to change notification settings - Fork 634
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #895 from Benbb96/merging-tickets-feature
New feature: Merging tickets
- Loading branch information
Showing
20 changed files
with
2,113 additions
and
1,108 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -337,9 +337,15 @@ def create_object_from_email_message(message, ticket_id, payload, files, logger) | |
if previous_followup is None and ticket_id is not None: | ||
try: | ||
ticket = Ticket.objects.get(id=ticket_id) | ||
new = False | ||
except Ticket.DoesNotExist: | ||
ticket = None | ||
else: | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
Benbb96
Member
|
||
new = False | ||
# Check if the ticket has been merged to another ticket | ||
if ticket.merged_to: | ||
logger.info("Ticket has been merged to %s" % ticket.merged_to.ticket) | ||
# Use the ticket in which it was merged to for next operations | ||
ticket = ticket.merged_to | ||
|
||
# New issue, create a new <Ticket> instance | ||
if ticket is None: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Oops, something went wrong.
This block looks to be indented at a level deeper than the initial if on line 337.