Skip to content

Commit

Permalink
Merge pull request #552 from dfir-iris/hotfix_case_status_error
Browse files Browse the repository at this point in the history
[FIX] Hotfix case status error - v2.4.10
  • Loading branch information
whikernel authored Jul 29, 2024
2 parents 8156f83 + b034abe commit 52f902c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 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
2 changes: 1 addition & 1 deletion source/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ WTForms==2.2.1
flask-socketio==5.1.1
eventlet==0.30.2
alembic==1.7.5
setuptools>=65.5.1
setuptools~=70.3.0
python-dateutil==2.8.2
python-gnupg==0.4.8
pyminizip~=0.2.6
Expand Down

0 comments on commit 52f902c

Please sign in to comment.