monitoring: Fix exception in the alert summary report when using the "One month" interval
fixes #8220
This commit is contained in:
parent
52c40bdc5b
commit
bfb2f710a1
|
@ -582,7 +582,7 @@ class Monitoring_AlertsummaryController extends Controller
|
|||
} elseif ($interval === '1w') {
|
||||
return new DatePeriod($this->getBeginDate($interval), new DateInterval('P1D'), 7);
|
||||
} elseif ($interval === '1m') {
|
||||
return new DatePeriod($this->getBeginDate($interval), new DateInterval('P1D'), 30);
|
||||
return new DatePeriod($this->getBeginDate($interval), new DateInterval('P1D'), 31);
|
||||
} elseif ($interval === '1y') {
|
||||
return new DatePeriod($this->getBeginDate($interval), new DateInterval('P1M'), 12);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue