Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/release/2.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
pablothedude committed Jan 24, 2019
2 parents 52a6aef + 0bc3a51 commit 251af90
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
## Next release


## 2.0.3

**Bugfix**
- Prevent new entities for checking Jira ticket #232

## 2.0.2

The main focus of this release was to fix some minor bugs to make a production ready release.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,9 +149,12 @@ public function handle(PublishEntityProductionCommand $command)
);

try {
// Before creating an issue, test if we didn't previously create this ticket (users can apply changes to
// requested published entities).
$issue = $this->ticketService->findByManageIdAndIssueType($entity->getManageId(), $this->issueType);
$issue = null;
if ($entity->getManageId()) {
// Before creating an issue, test if we didn't previously create this ticket (users can apply changes to
// requested published entities).
$issue = $this->ticketService->findByManageIdAndIssueType($entity->getManageId(), $this->issueType);
}
if (is_null($issue)) {
$issue = $this->ticketService->createIssueFrom($ticket);
$this->logger->info(sprintf('Created Jira issue with key: %s', $issue->key));
Expand Down

0 comments on commit 251af90

Please sign in to comment.