Skip to content

Commit 84669ba

Browse files
authored
Merge pull request #3882 from ControlSystemStudio/CSSTUDIO-3777
Bugfix: disable pvs with enable date indefinitely
2 parents 2cf68fc + 839b587 commit 84669ba

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

app/alarm/ui/src/main/java/org/phoebus/applications/alarm/ui/tree/ComponentActionHelper.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ public static void updateEnablement(final Node node, final AlarmClient model, fi
7878
});
7979
}
8080

81+
8182
/**
8283
* @param item Node where to start recursing for PVs that would be affected
8384
* @param pvs Array to update with PVs that would be affected
@@ -87,7 +88,7 @@ public static void findAffectedPVs(final AlarmTreeItem<?> item, final List<Alarm
8788
final AlarmClientLeaf pv = (AlarmClientLeaf) item;
8889
// If pv has different enablement, and wasn't already added
8990
// because selection contains its parent as well as the PV itself...
90-
if (pv.isEnabled() != enable && !pvs.contains(pv)) {
91+
if ((pv.isEnabled() != enable || pv.getEnabledDate() != null) && !pvs.contains(pv)) {
9192
pvs.add(pv);
9293
}
9394
} else {

0 commit comments

Comments
 (0)