diff --git a/frappe/templates/generators/web_form.html b/frappe/templates/generators/web_form.html index 118e13f395..ee3ecaa839 100644 --- a/frappe/templates/generators/web_form.html +++ b/frappe/templates/generators/web_form.html @@ -102,12 +102,11 @@
{{ label(field) }} {% if value(field) -%} -

- +

{{ doc.get(field.fieldname) }} -

{%- endif %} diff --git a/frappe/templates/pages/list.py b/frappe/templates/pages/list.py index 38d0781abb..ee227ff72b 100644 --- a/frappe/templates/pages/list.py +++ b/frappe/templates/pages/list.py @@ -62,7 +62,7 @@ def get(doctype, txt=None, limit_start=0, **kwargs): doc.doctype = doctype new_context = { "doc": doc, "meta": meta } if not frappe.flags.in_test: - new_context.pathname = frappe.local.request.path.strip("/ ") + new_context["pathname"] = frappe.local.request.path.strip("/ ") new_context.update(list_context) rendered_row = frappe.render_template(row_template, new_context, is_path=True) result.append(rendered_row)