// Fixed #PSFV-511
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@13311 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
1 parent
58d50f2e30
commit
605fb24471
1 file changed
+41
-20
@@ -61,18 +61,18 @@ class AdminCustomerThreadsControllerCore extends AdminController
|
|||||||
$this->fieldsDisplay = array(
|
$this->fieldsDisplay = array(
|
||||||
'id_customer_thread' => array(
|
'id_customer_thread' => array(
|
||||||
'title' => $this->l('ID'),
|
'title' => $this->l('ID'),
|
||||||
'width' => 25
|
'width' => 25,
|
||||||
),
|
),
|
||||||
'customer' => array(
|
'customer' => array(
|
||||||
'title' => $this->l('Customer'),
|
'title' => $this->l('Customer'),
|
||||||
'width' => 100,
|
'width' => 100,
|
||||||
'filter_key' => 'customer',
|
'filter_key' => 'customer',
|
||||||
'tmpTableFilter' => true
|
'tmpTableFilter' => true,
|
||||||
),
|
),
|
||||||
'email' => array(
|
'email' => array(
|
||||||
'title' => $this->l('E-mail'),
|
'title' => $this->l('E-mail'),
|
||||||
'width' => 100,
|
'width' => 100,
|
||||||
'filter_key' => 'a!email'
|
'filter_key' => 'a!email',
|
||||||
),
|
),
|
||||||
'contact' => array(
|
'contact' => array(
|
||||||
'title' => $this->l('Type'),
|
'title' => $this->l('Type'),
|
||||||
@@ -80,7 +80,7 @@ class AdminCustomerThreadsControllerCore extends AdminController
|
|||||||
'type' => 'select',
|
'type' => 'select',
|
||||||
'list' => $contact_array,
|
'list' => $contact_array,
|
||||||
'filter_key' => 'cl!id_contact',
|
'filter_key' => 'cl!id_contact',
|
||||||
'filter_type' => 'int'
|
'filter_type' => 'int',
|
||||||
),
|
),
|
||||||
'language' => array(
|
'language' => array(
|
||||||
'title' => $this->l('Language'),
|
'title' => $this->l('Language'),
|
||||||
@@ -88,7 +88,7 @@ class AdminCustomerThreadsControllerCore extends AdminController
|
|||||||
'type' => 'select',
|
'type' => 'select',
|
||||||
'list' => $language_array,
|
'list' => $language_array,
|
||||||
'filter_key' => 'l!id_lang',
|
'filter_key' => 'l!id_lang',
|
||||||
'filter_type' => 'int'
|
'filter_type' => 'int',
|
||||||
),
|
),
|
||||||
'status' => array(
|
'status' => array(
|
||||||
'title' => $this->l('Status'),
|
'title' => $this->l('Status'),
|
||||||
@@ -98,29 +98,34 @@ class AdminCustomerThreadsControllerCore extends AdminController
|
|||||||
'icon' => $images_array,
|
'icon' => $images_array,
|
||||||
'align' => 'center',
|
'align' => 'center',
|
||||||
'filter_key' => 'a!status',
|
'filter_key' => 'a!status',
|
||||||
'filter_type' => 'string'
|
'filter_type' => 'string',
|
||||||
),
|
),
|
||||||
'employee' => array(
|
'employee' => array(
|
||||||
'title' => $this->l('Employee'),
|
'title' => $this->l('Employee'),
|
||||||
'width' => 100,
|
'width' => 100,
|
||||||
'filter_key' => 'employee',
|
'filter_key' => 'employee',
|
||||||
'tmpTableFilter' => true
|
'tmpTableFilter' => true,
|
||||||
),
|
),
|
||||||
'messages' => array(
|
'messages' => array(
|
||||||
'title' => $this->l('Messages'),
|
'title' => $this->l('Messages'),
|
||||||
'width' => 50,
|
'width' => 50,
|
||||||
'filter_key' => 'messages',
|
'filter_key' => 'messages',
|
||||||
'tmpTableFilter' => true,
|
'tmpTableFilter' => true,
|
||||||
'maxlength' => 40
|
'maxlength' => 40,
|
||||||
),
|
),
|
||||||
'date_upd' => array(
|
'date_upd' => array(
|
||||||
'title' => $this->l('Last message'),
|
'title' => $this->l('Last message'),
|
||||||
'width' => 90,
|
'width' => 90,
|
||||||
'havingFilter' => true
|
'havingFilter' => true,
|
||||||
)
|
),
|
||||||
);
|
);
|
||||||
|
|
||||||
$this->bulk_actions = array('delete' => array('text' => $this->l('Delete selected'), 'confirm' => $this->l('Delete selected items?')));
|
$this->bulk_actions = array(
|
||||||
|
'delete' => array(
|
||||||
|
'text' => $this->l('Delete selected'),
|
||||||
|
'confirm' => $this->l('Delete selected items?'),
|
||||||
|
),
|
||||||
|
);
|
||||||
|
|
||||||
$this->shopLinkType = 'shop';
|
$this->shopLinkType = 'shop';
|
||||||
|
|
||||||
@@ -133,33 +138,33 @@ class AdminCustomerThreadsControllerCore extends AdminController
|
|||||||
'desc' => $this->l('Url for imap server (mail.server.com)'),
|
'desc' => $this->l('Url for imap server (mail.server.com)'),
|
||||||
'type' => 'text',
|
'type' => 'text',
|
||||||
'size' => 40,
|
'size' => 40,
|
||||||
'visibility' => Shop::CONTEXT_ALL
|
'visibility' => Shop::CONTEXT_ALL,
|
||||||
),
|
),
|
||||||
'PS_SAV_IMAP_PORT' => array(
|
'PS_SAV_IMAP_PORT' => array(
|
||||||
'title' => $this->l('Imap port'),
|
'title' => $this->l('Imap port'),
|
||||||
'desc' => $this->l('Port to use to connect imap server'),
|
'desc' => $this->l('Port to use to connect imap server'),
|
||||||
'type' => 'text',
|
'type' => 'text',
|
||||||
'defaultValue' => 143,
|
'defaultValue' => 143,
|
||||||
'visibility' => Shop::CONTEXT_ALL
|
'visibility' => Shop::CONTEXT_ALL,
|
||||||
),
|
),
|
||||||
'PS_SAV_IMAP_USER' => array(
|
'PS_SAV_IMAP_USER' => array(
|
||||||
'title' => $this->l('Imap user'),
|
'title' => $this->l('Imap user'),
|
||||||
'desc' => $this->l('User to use to connect imap server'),
|
'desc' => $this->l('User to use to connect imap server'),
|
||||||
'type' => 'text',
|
'type' => 'text',
|
||||||
'size' => 40,
|
'size' => 40,
|
||||||
'visibility' => Shop::CONTEXT_ALL
|
'visibility' => Shop::CONTEXT_ALL,
|
||||||
),
|
),
|
||||||
'PS_SAV_IMAP_PWD' => array(
|
'PS_SAV_IMAP_PWD' => array(
|
||||||
'title' => $this->l('Imap password'),
|
'title' => $this->l('Imap password'),
|
||||||
'desc' => $this->l('Password to use to connect imap server'),
|
'desc' => $this->l('Password to use to connect imap server'),
|
||||||
'type' => 'text',
|
'type' => 'text',
|
||||||
'size' => 40,
|
'size' => 40,
|
||||||
'visibility' => Shop::CONTEXT_ALL
|
'visibility' => Shop::CONTEXT_ALL,
|
||||||
),
|
),
|
||||||
'PS_SAV_IMAP_SSL' => array(
|
'PS_SAV_IMAP_SSL' => array(
|
||||||
'title' => $this->l('Imap use ssl'),
|
'title' => $this->l('Imap use ssl'),
|
||||||
'type' => 'bool',
|
'type' => 'bool',
|
||||||
'visibility' => Shop::CONTEXT_ALL
|
'visibility' => Shop::CONTEXT_ALL,
|
||||||
),
|
),
|
||||||
'PS_SAV_IMAP_DELETE_MSG' => array(
|
'PS_SAV_IMAP_DELETE_MSG' => array(
|
||||||
'title' => $this->l('Deletes messages'),
|
'title' => $this->l('Deletes messages'),
|
||||||
@@ -169,12 +174,12 @@ class AdminCustomerThreadsControllerCore extends AdminController
|
|||||||
'identifier' => 'value',
|
'identifier' => 'value',
|
||||||
'list' => array(
|
'list' => array(
|
||||||
'0' => array('value' => 0, 'name' => $this->l('No')),
|
'0' => array('value' => 0, 'name' => $this->l('No')),
|
||||||
'1' => array('value' => 1, 'name' => $this->l('Yes'))
|
'1' => array('value' => 1, 'name' => $this->l('Yes')),
|
||||||
),
|
),
|
||||||
'visibility' => Shop::CONTEXT_ALL
|
'visibility' => Shop::CONTEXT_ALL,
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
'submit' => array('title' => $this->l(' Save '), 'class' => 'button')
|
'submit' => array('title' => $this->l('Save'), 'class' => 'button'),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|
||||||
@@ -401,7 +406,7 @@ class AdminCustomerThreadsControllerCore extends AdminController
|
|||||||
'.png' => 'image/png',
|
'.png' => 'image/png',
|
||||||
'.jpeg' => 'image/jpeg',
|
'.jpeg' => 'image/jpeg',
|
||||||
'.gif' => 'image/gif',
|
'.gif' => 'image/gif',
|
||||||
'.jpg' => 'image/jpeg'
|
'.jpg' => 'image/jpeg',
|
||||||
);
|
);
|
||||||
|
|
||||||
$extension = '';
|
$extension = '';
|
||||||
@@ -583,5 +588,21 @@ class AdminCustomerThreadsControllerCore extends AdminController
|
|||||||
return parent::renderOptions();
|
return parent::renderOptions();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* AdminController::getList() override
|
||||||
|
* @see AdminController::getList()
|
||||||
|
*/
|
||||||
|
public function getList($id_lang, $order_by = null, $order_way = null, $start = 0, $limit = null, $id_lang_shop = false)
|
||||||
|
{
|
||||||
|
parent::getList($id_lang, $order_by, $order_way, $start, $limit, $id_lang_shop);
|
||||||
|
|
||||||
|
$nb_items = count($this->_list);
|
||||||
|
for ($i = 0; $i < $nb_items; ++$i)
|
||||||
|
{
|
||||||
|
if (isset($this->_list[$i]['messages']))
|
||||||
|
$this->_list[$i]['messages'] = Tools::htmlentitiesDecodeUTF8($this->_list[$i]['messages']);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Reference in new issue
Block a user