fix(assign_to): adding null/NoneType descriptions was broken (#33722)
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
This commit is contained in:
parent
50fa79f74f
commit
16c657c2cc
1 changed files with 1 additions and 1 deletions
|
|
@ -72,7 +72,7 @@ def add(args=None, *, ignore_permissions=False):
|
|||
else:
|
||||
from frappe.utils import nowdate
|
||||
|
||||
description = str(args.get("description", ""))
|
||||
description = args.get("description") or ""
|
||||
has_content = strip_html(description) or "<img" in description
|
||||
if not has_content:
|
||||
args["description"] = _("Assignment for {0} {1}").format(args["doctype"], args["name"])
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue