Hum … a clue … I don't think this issue has ever been reported before (or may be I missed it).
In admin/controller/extension/dashboard/activity.php file,
find:
Code: Select all
foreach ($results as $result) {
$comment = vsprintf($this->language->get('text_activity_' . $result['key']), json_decode($result['data'], true));
$find = array(
'customer_id=',
'order_id=',
'return_id='
);
$replace = array(
$this->url->link('customer/customer/edit', 'user_token=' . $this->session->data['user_token'] . '&customer_id='),
$this->url->link('sale/order/info', 'user_token=' . $this->session->data['user_token'] . '&order_id='),
$this->url->link('sale/return/edit', 'user_token=' . $this->session->data['user_token'] . '&return_id=')
);
$data['activities'][] = array(
'comment' => str_replace($find, $replace, $comment),
'date_added' => date($this->language->get('datetime_format'), strtotime($result['date_added']))
);
}
replace with:
Code: Select all
foreach ($results as $result) {
if (isset($result['key']) && !empty($result['data'])) {
$comment = vsprintf($this->language->get('text_activity_' . $result['key']), json_decode($result['data'], true));
$find = array(
'customer_id=',
'order_id=',
'return_id='
);
$replace = array(
$this->url->link('customer/customer/edit', 'user_token=' . $this->session->data['user_token'] . '&customer_id='),
$this->url->link('sale/order/info', 'user_token=' . $this->session->data['user_token'] . '&order_id='),
$this->url->link('sale/return/edit', 'user_token=' . $this->session->data['user_token'] . '&return_id=')
);
$data['activities'][] = array(
'comment' => str_replace($find, $replace, $comment),
'date_added' => date($this->language->get('datetime_format'), strtotime($result['date_added']))
);
}
}
Then, apply these steps:
viewtopic.php?f=176&p=733002#p718325 . See if the activities on the dashboard properly displays afterwards.