Fix ambiguous host_id field

This commit is contained in:
Gino 2019-05-27 12:04:02 +02:00 committed by Thomas Gelf
parent 884118958e
commit 64d0d8b618

View File

@ -69,7 +69,7 @@ abstract class ObjectsController extends ActionController
&& $host = $this->params->get('host') && $host = $this->params->get('host')
) { ) {
$host = IcingaHost::load($host, $this->db()); $host = IcingaHost::load($host, $this->db());
$table->getQuery()->where('host_id = ?', $host->get('id')); $table->getQuery()->where('o.host_id = ?', $host->get('id'));
} }
if ($request->getActionName() === 'templates') { if ($request->getActionName() === 'templates') {