-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(web_form): check properties for title field as well #23342
fix(web_form): check properties for title field as well #23342
Conversation
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## develop #23342 +/- ##
===========================================
+ Coverage 62.24% 62.26% +0.01%
===========================================
Files 771 771
Lines 73891 74028 +137
Branches 6342 6344 +2
===========================================
+ Hits 45996 46096 +100
- Misses 24286 24342 +56
+ Partials 3609 3590 -19
Flags with carried forward coverage won't be shown. Click here to find out more. |
…-23342 fix(web_form): check properties for title field as well (backport #23342)
…-23342 fix(web_form): check properties for title field as well (backport #23342)
@@ -692,6 +692,13 @@ def get_link_options(web_form_name, doctype, allow_read_on_all_link_options=Fals | |||
if value and int(value) == 1: | |||
show_title_field_in_link = True | |||
|
|||
if not title_field: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@akhilnarang this is needlessly complicated!
Just use frappe.get_meta(doctype)
which is mix of doctype + property setter.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, will open a PR to simplify
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Without this, setting the
show_title_field_in_link
on sites without developer mode on seems useless, as it doesn't change anything