mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-27 07:44:04 +02:00
Merge pull request #3781 from mdetrano/bugfix/cant_search_for_output_in_event_history_2266
Fixes 2266. Special handling of notification 'output' field.
This commit is contained in:
commit
5961f43aa9
@ -68,6 +68,8 @@ class HostnotificationQuery extends IdoQuery
|
|||||||
{
|
{
|
||||||
if ($col === 'UNIX_TIMESTAMP(hn.start_time)') {
|
if ($col === 'UNIX_TIMESTAMP(hn.start_time)') {
|
||||||
return 'hn.start_time ' . $sign . ' ' . $this->timestampForSql($this->valueToTimestamp($expression));
|
return 'hn.start_time ' . $sign . ' ' . $this->timestampForSql($this->valueToTimestamp($expression));
|
||||||
|
} elseif ($col === $this->columnMap['history']['output']) {
|
||||||
|
return parent::whereToSql('hn.output', $sign, $expression);
|
||||||
} else {
|
} else {
|
||||||
return parent::whereToSql($col, $sign, $expression);
|
return parent::whereToSql($col, $sign, $expression);
|
||||||
}
|
}
|
||||||
|
@ -68,6 +68,8 @@ class ServicenotificationQuery extends IdoQuery
|
|||||||
{
|
{
|
||||||
if ($col === 'UNIX_TIMESTAMP(sn.start_time)') {
|
if ($col === 'UNIX_TIMESTAMP(sn.start_time)') {
|
||||||
return 'sn.start_time ' . $sign . ' ' . $this->timestampForSql($this->valueToTimestamp($expression));
|
return 'sn.start_time ' . $sign . ' ' . $this->timestampForSql($this->valueToTimestamp($expression));
|
||||||
|
} elseif ($col === $this->columnMap['history']['output']) {
|
||||||
|
return parent::whereToSql('sn.output', $sign, $expression);
|
||||||
} else {
|
} else {
|
||||||
return parent::whereToSql($col, $sign, $expression);
|
return parent::whereToSql($col, $sign, $expression);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user