Fix validation when adding new comments.

Fire off the appropriate item_related_update events as appropriate.
This commit is contained in:
Bharat Mediratta
2009-01-16 04:06:03 +00:00
parent ecf94c74d8
commit 2920640c2b
3 changed files with 25 additions and 2 deletions

View File

@@ -126,6 +126,9 @@ class Admin_Comments_Controller extends Admin_Controller {
$comment->state = $state;
$comment->save();
module::event("comment_updated", $orig, $comment);
if ($orig->state == "published" || $comment->state == "published") {
module::event("item_related_update", $comment->item);
}
}
}