Skip to content

Commit

Permalink
Merge branch '1.0' into HEAD
Browse files Browse the repository at this point in the history
  • Loading branch information
Sanjeev Papnoi committed Jan 25, 2020
2 parents 07f67cf + 42e4f6d commit 19814f7
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG-1.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@ CHANGELOG for 1.0.x

This changelog references any relevant changes introduced in 1.0 minor versions.

* 1.0.4 (2019-01-25)
* **Issue #38:** Issue for imap host field when add host inside qoutes ' '.
* **Issue #28:** Error while edit disable mailbox.
* **Issue #50:** Email setting are not being update in production mode.
* **Issue #51:** Duplicate entry for ticket when running refresh command second time.

* 1.0.3 (2019-11-15)
* **Issue #46:** IMAP not creating tickets
* **Misc. Updates:**
Expand Down
5 changes: 2 additions & 3 deletions Controller/MailboxChannel.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public function createMailboxConfiguration(Request $request)

// IMAP Configuration
if (!empty($params['imap']['transport'])) {
($imapConfiguration = ImapConfiguration::createTransportDefinition($params['imap']['transport'], !empty($params['imap']['host']) ? $params['imap']['host'] : null))
($imapConfiguration = ImapConfiguration::createTransportDefinition($params['imap']['transport'], !empty($params['imap']['host']) ? trim($params['imap']['host'], '"') : null))
->setUsername($params['imap']['username'])
->setPassword($params['imap']['password']);
}
Expand Down Expand Up @@ -84,10 +84,9 @@ public function updateMailboxConfiguration($id, Request $request)

if ($request->getMethod() == 'POST') {
$params = $request->request->all();

// IMAP Configuration
if (!empty($params['imap']['transport'])) {
($imapConfiguration = ImapConfiguration::createTransportDefinition($params['imap']['transport'], !empty($params['imap']['host']) ? $params['imap']['host'] : null))
($imapConfiguration = ImapConfiguration::createTransportDefinition($params['imap']['transport'], !empty($params['imap']['host']) ? trim($params['imap']['host'], '"') : null))
->setUsername($params['imap']['username'])
->setPassword($params['imap']['password']);
}
Expand Down
2 changes: 1 addition & 1 deletion Resources/views/manageConfigurations.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@
<select name="swiftmailer_id" class="uv-select">
<option value="none">None Selected</option>
{% for configuration in swiftmailerConfigurations %}
{% if mailbox is defined and mailbox.swiftmailerConfiguration.id == configuration.id %}
{% if mailbox is defined and mailbox.swiftmailerConfiguration and mailbox.swiftmailerConfiguration.id == configuration.id %}
<option value="{{ configuration.id }}" selected>{{ configuration.id }}</option>
{% else %}
<option value="{{ configuration.id }}">{{ configuration.id }}</option>
Expand Down
2 changes: 1 addition & 1 deletion Services/MailboxService.php
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ public function processMail($rawEmail)
]);

$this->container->get('event_dispatcher')->dispatch('uvdesk.automation.workflow.execute', $event);
} else if (false === $ticket->getIsTrashed() && strtolower($ticket->getStatus()->getCode()) != 'spam') {
} else if (false === $ticket->getIsTrashed() && strtolower($ticket->getStatus()->getCode()) != 'spam' && !empty($mailData['inReplyTo'])) {
$mailData['threadType'] = 'reply';
$thread = $this->entityManager->getRepository(Thread::class)->findOneByMessageId($mailData['messageId']);

Expand Down

0 comments on commit 19814f7

Please sign in to comment.