Skip to content

Commit fb73baa

Browse files
committed
🎉 Advance reimport to update fix_available field #12633
1 parent 6b1b5e5 commit fb73baa

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

dojo/importers/default_reimporter.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -537,6 +537,9 @@ def process_matched_active_finding(
537537
# First check that the existing finding is definitely not mitigated
538538
if not (existing_finding.mitigated and existing_finding.is_mitigated):
539539
logger.debug("Reimported item matches a finding that is currently open.")
540+
if unsaved_finding.fix_available:
541+
logger.debug("Reimported finding has a fix available now.")
542+
existing_finding.fix_available = True
540543
if unsaved_finding.is_mitigated:
541544
logger.debug("Reimported mitigated item matches a finding that is currently open, closing.")
542545
# TODO: Implement a date comparison for opened defectdojo findings before closing them by reimporting,

0 commit comments

Comments
 (0)