Skip to content

Commit

Permalink
set class is depriciated and was not working for arrays with string k…
Browse files Browse the repository at this point in the history
…ey and then int key starting at 1
  • Loading branch information
dogmatic69 committed Aug 10, 2012
1 parent 5ceb46d commit 28e89d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Core/Libs/Controller/Component/MassActionComponent.php
Expand Up @@ -93,7 +93,7 @@ public function getIds($massAction, $data) {
return null;
}

$ids = array_values(array_filter(Set::extract('/massCheckBox', $data)));
$ids = array_values(array_filter(Hash::extract($data, '{n}.massCheckBox')));
if (empty($ids)) {
$this->Controller->notice(
__('Nothing was selected, please select something and try again.'),
Expand Down

0 comments on commit 28e89d6

Please sign in to comment.