瀏覽代碼

feat: add lang to safe globals

(cherry picked from commit 836fd6ef78)
version-14
barredterra 2 年之前
committed by Mergify
父節點
當前提交
0293c113c6
共有 1 個檔案被更改,包括 1 行新增0 行删除
  1. +1
    -0
      frappe/utils/safe_exec.py

+ 1
- 0
frappe/utils/safe_exec.py 查看文件

@@ -181,6 +181,7 @@ def get_safe_globals():
run_script=run_script,
is_job_queued=is_job_queued,
get_visible_columns=get_visible_columns,
lang=getattr(frappe.local, "lang", "en"),
)

add_module_properties(


Loading…
取消
儲存