From 9b89eba337c27ef550df7165337b3737b771f0c2 Mon Sep 17 00:00:00 2001
From: Lyes7
Date: Thu, 12 Sep 2024 10:18:49 +0100
Subject: [PATCH] fix: workflow typos
---
frappe/translate.py | 2 +-
frappe/workflow/doctype/workflow/workflow.js | 6 +++---
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/frappe/translate.py b/frappe/translate.py
index e4cb8f32bb..c23c7456e2 100644
--- a/frappe/translate.py
+++ b/frappe/translate.py
@@ -351,7 +351,7 @@ def get_messages_from_workflow(doctype=None, app_name=None):
else:
fixtures = frappe.get_hooks("fixtures", app_name=app_name) or []
for fixture in fixtures:
- if isinstance(fixture, str) and fixture == "Worflow":
+ if isinstance(fixture, str) and fixture == "Workflow":
workflows = frappe.get_all("Workflow")
break
elif isinstance(fixture, dict) and fixture.get("dt", fixture.get("doctype")) == "Workflow":
diff --git a/frappe/workflow/doctype/workflow/workflow.js b/frappe/workflow/doctype/workflow/workflow.js
index 4bcffdde7a..70febb4611 100644
--- a/frappe/workflow/doctype/workflow/workflow.js
+++ b/frappe/workflow/doctype/workflow/workflow.js
@@ -127,8 +127,8 @@ frappe.ui.form.on("Workflow", {
${__(
- "There are documents which have workflow states that do not exist in this Workflow. It is recommended that you add these states to the Workflow and change their states before removing these states."
- )}
+ "There are documents which have workflow states that do not exist in this Workflow. It is recommended that you add these states to the Workflow and change their states before removing these states."
+ )}
`;
const message_html = warning_html + frm.state_table_html;
let proceed_action = () => {
@@ -137,7 +137,7 @@ frappe.ui.form.on("Workflow", {
};
frappe.warn(
- __("Worflow States Don't Exist"),
+ __("Workflow States Don't Exist"),
message_html,
proceed_action,
__("Save Anyway")