mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-30 01:04:12 +02:00
GeneratedConfigTable: Fix group by error
This commit is contained in:
parent
29820e05ac
commit
8333975662
@ -16,7 +16,7 @@ class GeneratedConfigTable extends QuickTable
|
|||||||
'activity_log_id' => 'l.id'
|
'activity_log_id' => 'l.id'
|
||||||
);
|
);
|
||||||
|
|
||||||
if ($this->db->getDbType() === 'psql') {
|
if ($this->connection->getDbType() === 'pgsql') {
|
||||||
$columns['checksum'] = "LOWER(ENCODE(c.checksum, 'hex'))";
|
$columns['checksum'] = "LOWER(ENCODE(c.checksum, 'hex'))";
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -53,7 +53,7 @@ class GeneratedConfigTable extends QuickTable
|
|||||||
array('cf' => 'director_generated_config_file'),
|
array('cf' => 'director_generated_config_file'),
|
||||||
'cf.config_checksum = c.checksum',
|
'cf.config_checksum = c.checksum',
|
||||||
array()
|
array()
|
||||||
)->group('c.checksum')->order('l.change_time DESC');
|
)->group('c.checksum')->group('l.id')->order('l.change_time DESC');
|
||||||
|
|
||||||
return $db->fetchAll($query);
|
return $db->fetchAll($query);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user