Skip to content

Commit

Permalink
[FIX] Errorneous outcome status
Browse files Browse the repository at this point in the history
  • Loading branch information
whikernel committed Jul 29, 2024
1 parent fd80457 commit b034abe
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
1 change: 1 addition & 0 deletions source/app/blueprints/manage/manage_cases_routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ def details_case(cur_id: int, caseid: int, url_redir: bool) -> Union[str, Respon
form = FlaskForm()

if res:
print(res.get('status_name'))
return render_template("modal_case_info_from_case.html", data=res, form=form, protagonists=protagonists,
case_classifications=case_classifications, case_states=case_states, customers=customers,
severities=severities)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -206,12 +206,13 @@ <h4 class=" pb-3">Edit case information</h4>
</div>
<select class="form-control selectpicker"
id="case_quick_status" name="status_id">
<option value="0" {% if data.status_id == 0 %}selected{% endif %} class="badge-text">Unknown</option>
<option value="1" {% if data.status_id == 1 %}selected{% endif %} class="badge-text">False Positive</option>
<option value="2" {% if data.status_id == 2 %}selected{% endif %} class="badge-text">True Positive with impact</option>
<option value="4" {% if data.status_id == 4 %}selected{% endif %} class="badge-text">True Positive without impact</option>
<option value="5" {% if data.status_id == 4 %}selected{% endif %} class="badge-text">Legitimate</option>
<option value="3" {% if data.status_id == 3 %}selected{% endif %} class="badge-text">Not applicable</option>
{{ data }}
<option value="0" {% if data.status_name == "unknown" %}selected{% endif %} class="badge-text">Unknown</option>
<option value="1" {% if data.status_name == "false_positive" %}selected{% endif %} class="badge-text">False Positive</option>
<option value="2" {% if data.status_name == "true_positive_with_impact" %}selected{% endif %} class="badge-text">True Positive with impact</option>
<option value="4" {% if data.status_name == "true_positive_without_impact" %}selected{% endif %} class="badge-text">True Positive without impact</option>
<option value="5" {% if data.status_name == "legitimate" %}selected{% endif %} class="badge-text">Legitimate</option>
<option value="3" {% if data.status_name == "not_applicable" %}selected{% endif %} class="badge-text">Not applicable</option>
</select>
</div>
</div>
Expand Down

0 comments on commit b034abe

Please sign in to comment.