From 8da62f0f146ac9177cb7e901e0d1d613ac8b5c09 Mon Sep 17 00:00:00 2001 From: root Date: Fri, 24 Apr 2026 21:58:53 +0000 Subject: [PATCH] Require qualys_id for risk_acceptance in bulk Atlas action plan modal --- frontend/src/components/pages/ReportingPage.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/frontend/src/components/pages/ReportingPage.js b/frontend/src/components/pages/ReportingPage.js index 9f1399f..c887294 100644 --- a/frontend/src/components/pages/ReportingPage.js +++ b/frontend/src/components/pages/ReportingPage.js @@ -3883,6 +3883,8 @@ function BulkAtlasModal({ selectedFindings, onClose, onSuccess }) { const handleSubmit = async () => { if (!commitDate) { setError('Commit date is required'); return; } if (hostIds.length === 0) { setError('No valid host IDs in selection'); return; } + const needsQualysId = ['remediation', 'false_positive', 'risk_acceptance'].includes(planType); + if (needsQualysId && !qualysId.trim()) { setError(`Qualys ID is required for ${planType.replace(/_/g, ' ')} plans`); return; } setSubmitting(true); setError(null); @@ -4041,9 +4043,9 @@ function BulkAtlasModal({ selectedFindings, onClose, onSuccess }) { {/* Optional fields — shown based on plan type */} - {(planType === 'remediation' || planType === 'false_positive') && ( + {(planType === 'remediation' || planType === 'false_positive' || planType === 'risk_acceptance') && (
- + setQualysId(e.target.value)} placeholder="QID-12345" style={inputSt} />