feat: allow Context for translation in DocField.description in base input (#33715)

This commit is contained in:
HENRY Florian 2025-08-26 13:18:49 +02:00 committed by GitHub
parent 3461a9d12c
commit 4f7da990cc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -206,7 +206,7 @@ frappe.ui.form.ControlInput = class ControlInput extends frappe.ui.form.Control
return;
}
if (this.df.description) {
this.$wrapper.find(".help-box").html(__(this.df.description));
this.$wrapper.find(".help-box").html(__(this.df.description, null, this.df.parent));
this.toggle_description(true);
} else {
this.set_empty_description();