Skip to content

Commit

Permalink
using proper host_id which is now set processEvent controller. fixes O…
Browse files Browse the repository at this point in the history
  • Loading branch information
padams committed Mar 17, 2011
1 parent a56b3fd commit fa58700
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/base/handlers/hostHandlers.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 ) {
Expand Down

0 comments on commit fa58700

Please sign in to comment.