Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v2.3.4 - Hot Fix #336

Merged
merged 2 commits into from
Nov 29, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@ -384,6 +384,7 @@ def api_add_case(caseid):

case = case_schema.load(request_data)
case.owner_id = current_user.id
case.severity_id = 4

if case_template_id and len(case_template_id) > 0:
case = case_template_pre_modifier(case, case_template_id)
Expand Down
2 changes: 1 addition & 1 deletion source/app/iris_engine/reporter/reporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ def generate_doc_report(self, doc_type):

name = "{}".format("{}.docx".format(report.naming_format))
name = name.replace("%code_name%", case_info['doc_id'])
name = name.replace('%customer%', case_info['case'].get('for_customer'))
name = name.replace('%customer%', case_info['case']['client']['customer_name'])
name = name.replace('%case_name%', case_info['case'].get('name'))
name = name.replace('%date%', datetime.utcnow().strftime("%Y-%m-%d"))
output_file_path = os.path.join(self._tmp, name)
Expand Down
Loading