Parcourir la source

feat: add lang to safe globals

(cherry picked from commit 836fd6ef78)
version-14
barredterra il y a 2 ans
committed by Mergify
Parent
révision
0293c113c6
1 fichiers modifiés avec 1 ajouts et 0 suppressions
  1. +1
    -0
      frappe/utils/safe_exec.py

+ 1
- 0
frappe/utils/safe_exec.py Voir le fichier

@@ -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(


Chargement…
Annuler
Enregistrer