File tree 2 files changed +6
-2
lines changed
2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -37,6 +37,7 @@ public function indexAction()
37
37
'acknowledgement ' ,
38
38
'state '
39
39
]);
40
+ $ history ->disableDefaultSort ();
40
41
41
42
$ before = $ this ->params ->shift ('before ' , time ());
42
43
$ url = Url::fromPath ('icingadb/history ' )->setParams (clone $ this ->params );
@@ -76,7 +77,10 @@ public function indexAction()
76
77
$ history ->limit ($ page * $ limitControl ->getLimit ());
77
78
}
78
79
79
- $ history ->filter (Filter::lessThanOrEqual ('event_time ' , $ before ));
80
+ if ($ this ->params ->has ('before ' )) {
81
+ $ history ->filter (Filter::lessThanOrEqual ('event_time ' , $ before ));
82
+ }
83
+
80
84
$ this ->filter ($ history , $ filter );
81
85
$ history ->getWith ()['history.host ' ]->setJoinType ('LEFT ' );
82
86
$ history ->getSelectBase ()
Original file line number Diff line number Diff line change @@ -80,7 +80,7 @@ public function createRelations(Relations $relations)
80
80
{
81
81
$ relations ->belongsTo ('endpoint ' , Endpoint::class);
82
82
$ relations ->belongsTo ('environment ' , Environment::class);
83
- $ relations ->belongsTo ('host ' , Host::class);
83
+ $ relations ->belongsTo ('host ' , Host::class)-> setJoinType ( ' LEFT ' ) ;
84
84
$ relations ->belongsTo ('service ' , Service::class)->setJoinType ('LEFT ' );
85
85
86
86
$ relations ->hasOne ('comment ' , CommentHistory::class)
You can’t perform that action at this time.
0 commit comments