Skip to content

Commit f3c8f0e

Browse files
committed
🎉 Advance reimport to update fix_available field #12633
1 parent 7614907 commit f3c8f0e

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
@@ -538,6 +538,9 @@ def process_matched_active_finding(
538538
# First check that the existing finding is definitely not mitigated
539539
if not (existing_finding.mitigated and existing_finding.is_mitigated):
540540
logger.debug("Reimported item matches a finding that is currently open.")
541+
if unsaved_finding.fix_available:
542+
logger.debug("Reimported finding has a fix available now.")
543+
existing_finding.fix_available = True
541544
if unsaved_finding.is_mitigated:
542545
logger.debug("Reimported mitigated item matches a finding that is currently open, closing.")
543546
# TODO: Implement a date comparison for opened defectdojo findings before closing them by reimporting,

0 commit comments

Comments
 (0)