Skip to content

Commit 1c99281

Browse files
sreichelfballiano
authored andcommitted
Fixed "must be of type string, null given" ref #2874 (#2878)
1 parent 9e00a05 commit 1c99281

File tree

1 file changed

+2
-2
lines changed
  • app/code/core/Mage/Adminhtml/Block/Widget/Grid/Massaction

1 file changed

+2
-2
lines changed

app/code/core/Mage/Adminhtml/Block/Widget/Grid/Massaction/Abstract.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ public function __construct()
110110
*/
111111
public function addItem($itemId, array $item)
112112
{
113-
if ($this->isConfirmMassAction($itemId) && !isset($item['confirm'])) {
113+
if (is_string($itemId) && $this->isConfirmMassAction($itemId) && !isset($item['confirm'])) {
114114
$item['confirm'] = Mage::helper('core')->__('Are you sure?');
115115
}
116116

@@ -131,7 +131,7 @@ public function addItem($itemId, array $item)
131131
* Retrieve massaction item with id $itemId
132132
*
133133
* @param string $itemId
134-
* @return Mage_Adminhtml_Block_Widget_Grid_Massaction_Item
134+
* @return Mage_Adminhtml_Block_Widget_Grid_Massaction_Item|null
135135
*/
136136
public function getItem($itemId)
137137
{

0 commit comments

Comments
 (0)