From fa5870074397eeac63e33745c88b01573a1e92f3 Mon Sep 17 00:00:00 2001 From: padams Date: Thu, 17 Mar 2011 20:47:12 +0000 Subject: [PATCH] using proper host_id which is now set processEvent controller. fixes #360. --- modules/base/handlers/hostHandlers.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/base/handlers/hostHandlers.php b/modules/base/handlers/hostHandlers.php index fca3a3c7f..e47a09cfc 100644 --- a/modules/base/handlers/hostHandlers.php +++ b/modules/base/handlers/hostHandlers.php @@ -45,13 +45,13 @@ function notify($event) { $h = owa_coreAPI::entityFactory('base.host'); - $h->getByPk('id', owa_lib::setStringGuid($event->get('full_host'))); + $h->getByPk( 'id', $event->get( 'host_id' ) ); $id = $h->get('id'); if (!$id) { $h->setProperties($event->getProperties()); - $h->set('id', owa_lib::setStringGuid($event->get('full_host'))); + $h->set('id', $event->get( 'host_id' ) ); $ret = $h->create(); if ( $ret ) {