From bd0de180177d7e79f6ecadbc5d4bd6255676a016 Mon Sep 17 00:00:00 2001 From: Jose Consador Date: Thu, 18 Jun 2015 16:05:09 +0800 Subject: [PATCH] Change getUrl() route on bulk actions --- .../Adminhtml/Dashboard/Tab/Tickets/Grid/Abstract.php | 10 +++++----- .../default/template/zendesk/customer/tickets.phtml | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/app/code/community/Zendesk/Zendesk/Block/Adminhtml/Dashboard/Tab/Tickets/Grid/Abstract.php b/src/app/code/community/Zendesk/Zendesk/Block/Adminhtml/Dashboard/Tab/Tickets/Grid/Abstract.php index 80d379cd..6acdbf9d 100644 --- a/src/app/code/community/Zendesk/Zendesk/Block/Adminhtml/Dashboard/Tab/Tickets/Grid/Abstract.php +++ b/src/app/code/community/Zendesk/Zendesk/Block/Adminhtml/Dashboard/Tab/Tickets/Grid/Abstract.php @@ -97,13 +97,13 @@ protected function _prepareMassaction() { $this->getMassactionBlock()->addItem('delete', array( 'label' => Mage::helper('zendesk')->__('Delete'), - 'url' => $this->getUrl('*/adminhtml_zendesk/bulkDelete', array('form_key' => $formKey, '_current' => true)), + 'url' => $this->getUrl('adminhtml/zendesk/bulkDelete', array('form_key' => $formKey, '_current' => true)), 'confirm' => Mage::helper('zendesk')->__('Are you sure you want to delete selected tickets?') )); $this->getMassactionBlock()->addItem('change_status', array( 'label' => Mage::helper('zendesk')->__('Change Status'), - 'url' => $this->getUrl('*/adminhtml_zendesk/bulkChangeStatus', array('form_key' => $formKey, '_current' => true)), + 'url' => $this->getUrl('adminhtml/zendesk/bulkChangeStatus', array('form_key' => $formKey, '_current' => true)), 'confirm' => Mage::helper('zendesk')->__('Are you sure you want to change status of selected tickets?'), 'additional' => array( 'visibility' => array( @@ -118,7 +118,7 @@ protected function _prepareMassaction() { $this->getMassactionBlock()->addItem('change_priority', array( 'label' => Mage::helper('zendesk')->__('Change Priority'), - 'url' => $this->getUrl('*/adminhtml_zendesk/bulkChangePriority', array('form_key' => $formKey, '_current' => true)), + 'url' => $this->getUrl('adminhtml/zendesk/bulkChangePriority', array('form_key' => $formKey, '_current' => true)), 'confirm' => Mage::helper('zendesk')->__('Are you sure you want to change priority of selected tickets?'), 'additional' => array( 'visibility' => array( @@ -133,7 +133,7 @@ protected function _prepareMassaction() { $this->getMassactionBlock()->addItem('change_type', array( 'label' => Mage::helper('zendesk')->__('Change Type'), - 'url' => $this->getUrl('*/adminhtml_zendesk/bulkChangeType', array('form_key' => $formKey, '_current' => true)), + 'url' => $this->getUrl('adminhtml/zendesk/bulkChangeType', array('form_key' => $formKey, '_current' => true)), 'confirm' => Mage::helper('zendesk')->__('Are you sure you want to change type of selected tickets?'), 'additional' => array( 'visibility' => array( @@ -148,7 +148,7 @@ protected function _prepareMassaction() { $this->getMassactionBlock()->addItem('mark_as_spam', array( 'label' => Mage::helper('zendesk')->__('Mark as Spam'), - 'url' => $this->getUrl('*/adminhtml_zendesk/bulkMarkSpam', array('form_key' => $formKey, '_current' => true)), + 'url' => $this->getUrl('adminhtml/zendesk/bulkMarkSpam', array('form_key' => $formKey, '_current' => true)), 'confirm' => Mage::helper('zendesk')->__('Are you sure you want to mark as spam selected tickets?'), )); diff --git a/src/app/design/adminhtml/default/default/template/zendesk/customer/tickets.phtml b/src/app/design/adminhtml/default/default/template/zendesk/customer/tickets.phtml index be70c518..6a9e7485 100644 --- a/src/app/design/adminhtml/default/default/template/zendesk/customer/tickets.phtml +++ b/src/app/design/adminhtml/default/default/template/zendesk/customer/tickets.phtml @@ -61,7 +61,7 @@ if($customer = Mage::registry('current_customer')) { formatDate($ticket['created_at'], Mage_Core_Model_Locale::FORMAT_TYPE_MEDIUM, true); ?> formatDate($ticket['updated_at'], Mage_Core_Model_Locale::FORMAT_TYPE_MEDIUM, true); ?> - +