[-] BO : Customer Service options/sync mailbox not working - #PSFV-539
This commit is contained in:
+1
-1
@@ -646,7 +646,7 @@ if (Tools::isSubmit('syncImapMail'))
|
||||
if (!function_exists('imap_open'))
|
||||
die('{"hasError" : true, "errors" : ["imap is not installed on this server"]}');
|
||||
|
||||
$mbox = @imap_open('{'.$url.':'.$port.(Configuration::get('PS_SAV_IMAP_SSL') ? '/ssl' : '').'}', $user, $password);
|
||||
$mbox = @imap_open('{'.$url.':'.$port.(Configuration::get('PS_SAV_IMAP_OPT') ? Configuration::get('PS_SAV_IMAP_OPT') : '').'}', $user, $password);
|
||||
|
||||
//checks if there is no error when connecting imap server
|
||||
$errors = imap_errors();
|
||||
|
||||
@@ -86,7 +86,13 @@
|
||||
{/block}
|
||||
{if $field['type'] == 'select'}
|
||||
{if $field['list']}
|
||||
<select name="{$key}"{if isset($field['js'])} onchange="{$field['js']}"{/if} id="{$key}">
|
||||
{if $field['select_multiple']}
|
||||
{assign var="select_name" value="{$key}[]"}
|
||||
{else}
|
||||
{assign var="select_name" value="[$key]"}
|
||||
{/if}
|
||||
|
||||
<select name="{$select_name}"{if isset($field['js'])} onchange="{$field['js']}"{/if} id="{$key}" {if $field['select_multiple']} multiple="multiple"{/if} {if $field['size']} size="{$field['size']}"{/if}>
|
||||
{foreach $field['list'] AS $k => $option}
|
||||
<option value="{$option[$field['identifier']]}"{if $field['value'] == $option[$field['identifier']]} selected="selected"{/if}>{$option['name']}</option>
|
||||
{/foreach}
|
||||
|
||||
Reference in New Issue
Block a user