Skip to content

Commit 39fdfd4

Browse files
committed
Merge pull request #75 from zendesk/jose/MI-98-bulk-actions
[MI-98] Update routes for getUrl call on bulk actions
2 parents 94ed86c + bd0de18 commit 39fdfd4

File tree

2 files changed

+6
-6
lines changed
  • src/app
    • code/community/Zendesk/Zendesk/Block/Adminhtml/Dashboard/Tab/Tickets/Grid
    • design/adminhtml/default/default/template/zendesk/customer

2 files changed

+6
-6
lines changed

src/app/code/community/Zendesk/Zendesk/Block/Adminhtml/Dashboard/Tab/Tickets/Grid/Abstract.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -97,13 +97,13 @@ protected function _prepareMassaction() {
9797

9898
$this->getMassactionBlock()->addItem('delete', array(
9999
'label' => Mage::helper('zendesk')->__('Delete'),
100-
'url' => $this->getUrl('*/adminhtml_zendesk/bulkDelete', array('form_key' => $formKey, '_current' => true)),
100+
'url' => $this->getUrl('adminhtml/zendesk/bulkDelete', array('form_key' => $formKey, '_current' => true)),
101101
'confirm' => Mage::helper('zendesk')->__('Are you sure you want to delete selected tickets?')
102102
));
103103

104104
$this->getMassactionBlock()->addItem('change_status', array(
105105
'label' => Mage::helper('zendesk')->__('Change Status'),
106-
'url' => $this->getUrl('*/adminhtml_zendesk/bulkChangeStatus', array('form_key' => $formKey, '_current' => true)),
106+
'url' => $this->getUrl('adminhtml/zendesk/bulkChangeStatus', array('form_key' => $formKey, '_current' => true)),
107107
'confirm' => Mage::helper('zendesk')->__('Are you sure you want to change status of selected tickets?'),
108108
'additional' => array(
109109
'visibility' => array(
@@ -118,7 +118,7 @@ protected function _prepareMassaction() {
118118

119119
$this->getMassactionBlock()->addItem('change_priority', array(
120120
'label' => Mage::helper('zendesk')->__('Change Priority'),
121-
'url' => $this->getUrl('*/adminhtml_zendesk/bulkChangePriority', array('form_key' => $formKey, '_current' => true)),
121+
'url' => $this->getUrl('adminhtml/zendesk/bulkChangePriority', array('form_key' => $formKey, '_current' => true)),
122122
'confirm' => Mage::helper('zendesk')->__('Are you sure you want to change priority of selected tickets?'),
123123
'additional' => array(
124124
'visibility' => array(
@@ -133,7 +133,7 @@ protected function _prepareMassaction() {
133133

134134
$this->getMassactionBlock()->addItem('change_type', array(
135135
'label' => Mage::helper('zendesk')->__('Change Type'),
136-
'url' => $this->getUrl('*/adminhtml_zendesk/bulkChangeType', array('form_key' => $formKey, '_current' => true)),
136+
'url' => $this->getUrl('adminhtml/zendesk/bulkChangeType', array('form_key' => $formKey, '_current' => true)),
137137
'confirm' => Mage::helper('zendesk')->__('Are you sure you want to change type of selected tickets?'),
138138
'additional' => array(
139139
'visibility' => array(
@@ -148,7 +148,7 @@ protected function _prepareMassaction() {
148148

149149
$this->getMassactionBlock()->addItem('mark_as_spam', array(
150150
'label' => Mage::helper('zendesk')->__('Mark as Spam'),
151-
'url' => $this->getUrl('*/adminhtml_zendesk/bulkMarkSpam', array('form_key' => $formKey, '_current' => true)),
151+
'url' => $this->getUrl('adminhtml/zendesk/bulkMarkSpam', array('form_key' => $formKey, '_current' => true)),
152152
'confirm' => Mage::helper('zendesk')->__('Are you sure you want to mark as spam selected tickets?'),
153153
));
154154

src/app/design/adminhtml/default/default/template/zendesk/customer/tickets.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ if($customer = Mage::registry('current_customer')) {
6161
<td><?php echo Mage::helper('core')->formatDate($ticket['created_at'], Mage_Core_Model_Locale::FORMAT_TYPE_MEDIUM, true); ?></td>
6262
<td><?php echo Mage::helper('core')->formatDate($ticket['updated_at'], Mage_Core_Model_Locale::FORMAT_TYPE_MEDIUM, true); ?></td>
6363
<td><?php echo ucwords($ticket['status']); ?></td>
64-
<td><?php echo ($ticket['group_id']) ? $t['group']['name'] : ''; ?></td>
64+
<td><?php echo (isset($ticket['group_id'])) ? $t['group']['name'] : ''; ?></td>
6565
<td><?php echo ($ticket['assignee_id']) ? $t['assignee']['name'] : ''; ?></td>
6666
</tr>
6767
<?php endforeach; ?>

0 commit comments

Comments
 (0)