File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
library/Notifications/Widget/Detail Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 15
15
use ipl \Html \HtmlElement ;
16
16
use ipl \Html \Table ;
17
17
use ipl \Html \Text ;
18
+ use ipl \Stdlib \Filter ;
18
19
19
20
class IncidentDetail extends BaseHtmlElement
20
21
{
@@ -36,7 +37,12 @@ public function __construct(Incident $incident)
36
37
protected function createContacts ()
37
38
{
38
39
$ contacts = [];
39
- foreach ($ this ->incident ->incident_contact ->with ('contact ' )->orderBy ('role ' , SORT_DESC ) as $ incident_contact ) {
40
+ $ query = $ this ->incident ->incident_contact
41
+ ->with ('contact ' )
42
+ ->filter (Filter::equal ('contact.deleted ' , 'n ' ))
43
+ ->orderBy ('role ' , SORT_DESC );
44
+
45
+ foreach ($ query as $ incident_contact ) {
40
46
$ contact = $ incident_contact ->contact ;
41
47
$ contact ->role = $ incident_contact ->role ;
42
48
You can’t perform that action at this time.
0 commit comments