fix(webform): respect context banner_image (#37688)

This commit is contained in:
Kerolles Fathy 2026-03-02 07:35:40 +02:00 committed by GitHub
parent 34db776bc5
commit 26dddcb9d8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -259,7 +259,7 @@ def get_context(context):
context.boot = get_boot_data()
context.boot["link_title_doctypes"] = frappe.boot.get_link_title_doctypes()
context.webform_banner_image = self.banner_image
context.webform_banner_image = context.get("banner_image") or self.banner_image
context.pop("banner_image", None)
def add_metatags(self, context):