From 9f03d36d6ee5358b3081f64fc7ef0b0ae42d97db Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Sat, 16 Jan 2010 00:10:55 -0800 Subject: Don't use MY_ORM::original() here since the values may not have changed since the last save. Instead, use the original ORM passed in. --- modules/notification/helpers/notification_event.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'modules/notification/helpers/notification_event.php') diff --git a/modules/notification/helpers/notification_event.php b/modules/notification/helpers/notification_event.php index bc1303f5..76afac9c 100644 --- a/modules/notification/helpers/notification_event.php +++ b/modules/notification/helpers/notification_event.php @@ -22,8 +22,9 @@ class notification_event_Core { // don't want to screw up the processing that was generating the notification // so we don't pass the exception up the call stack static function item_updated($original, $new) { + Kohana_Log::add("error",print_r("item_updated({$original->title}, {$new->title})",1)); try { - notification::send_item_updated($new); + notification::send_item_updated($original, $new); } catch (Exception $e) { Kohana_Log::add("error", "@todo notification_event::item_updated() failed"); Kohana_Log::add("error", $e->getMessage() . "\n" . $e->getTraceAsString()); -- cgit v1.2.3