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 ) {