Skip to content

Commit

Permalink
adding a fix for when the pk != id on the delete.
Browse files Browse the repository at this point in the history
  • Loading branch information
dogmatic69 committed Jan 4, 2010
1 parent 0eba054 commit 374a1d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app_controller.php
Expand Up @@ -402,7 +402,7 @@ protected function __massActionDelete( $ids )
$model = $this->modelNames[0];

$conditions = array(
$model.'.id' => $ids
$model.'.'.$this->$model->primaryKey => $ids
);

if ( $this->$model->deleteAll( $conditions ) )
Expand Down

0 comments on commit 374a1d3

Please sign in to comment.