Skip to content
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

In sidebar filter link field show field.name but not field.title #26390

Closed
rareMaxim opened this issue May 9, 2024 · 4 comments
Closed

In sidebar filter link field show field.name but not field.title #26390

rareMaxim opened this issue May 9, 2024 · 4 comments
Labels

Comments

@rareMaxim
Copy link
Contributor

Description of the issue

In sidebar filter link field show field.name but not field.title
image

Context information (for bug reports)

image

Output of bench version

cnap 0.0.1
frappe 15.x.x-develop
frappe_translate 0.0.1
frappe_ua 0.0.1
idp 0.0.1
orange_inventory 0.0.1
print_designer 1.0.0

Steps to reproduce the issue

Observed result

Expected result

Stacktrace / full error message

(paste here)

Additional information

OS version / distribution, Frappe install method, etc.

@rareMaxim rareMaxim added the bug label May 9, 2024
@karanwilson
Copy link
Contributor

Hi @rareMaxim ,
Have you tried checking/enabling the check-field option "Show Title in Link Fields" :
Doctype view settings

Edit Doctype > 'Settings' > 'View Settings' > 'Show Title in Link Fields'

@nabinhait

@rareMaxim
Copy link
Contributor Author

@karanwilson Thank you for your reply. Title field is already set
Screenshot_20240509-181826.png

@karanwilson
Copy link
Contributor

karanwilson commented May 10, 2024

Hi @rareMaxim,
I reproduced these sidebar filters on my local instance:
The default use-case of these filters are for filtering rows in the opened doctype list, based on the values in the filtered doc-field.
When you choose a column that is a regular doc-field, you will see the fieldname values show up;
however since you are choosing a link-field, the default fieldname value of a link-field is field.name, which is the normal output of the filter logic.

In case you need to be able to see the field.title, you will need to customise the filter logic to check whether the chosen doc-field is a link-field; if yes, then fetch the field.title, instead of the default field.name

Hence this is not a bug, but the default output of the sidebar search filter.

You could classify this as a 'feature-request' though.

@rareMaxim
Copy link
Contributor Author

@karanwilson thanks. I'm create feature-request

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 26, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants