Permalink
Browse files

fixed afterDelete callback, node_id changed to $model->id

  • Loading branch information...
1 parent 034ee35 commit 069f930ac81e2e7efb86033fe5151d0f29a57552 @elcuro committed Feb 19, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 models/behaviors/eshop.php
@@ -98,7 +98,7 @@ public function afterDelete(&$model) {
$this->Item = ClassRegistry::init('Eshop.EshopItem');
}
- $this->Item->deleteAll(array('node_id' => $node_id));
+ $this->Item->deleteAll(array('node_id' => $model->id));
}
}

0 comments on commit 069f930

Please sign in to comment.