-
-
Notifications
You must be signed in to change notification settings - Fork 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
Content of custom fields of type URL (Generate link) is not displayed in listviews #9232
Comments
…ields of type URL (Generate link) is not displayed in listviews salesagility#9232 include dependend fields for url field in $filter_fields. public function setupFilterFields Changes to be committed: modified: ListViewDisplay.php
…ields of type URL (Generate link) is not displayed in listviews salesagility#9232 For generated 'url' field type, export valaue of default as value to display. On branch 9232_listview_display_url_content_type Cherry-pick currently in progress. Changes to be committed: modified: SugarBean.php
in pull request #9234:
If url field is generated, there is no point that value is retrieved from db. For example (real word example): We put in URL type field link to external app, generated with external_app_id_c like: https://externalapp.example.com/index.php?id={external_app_id_c} Now fixed part of URL (https://externalapp.example.com) is changed to https://externalapp.newcomapny.com. if we get value from DB, all existing records will have old value. But with changes in pull request, all existing record will point to new URL, when we change default value in URL field definition ... Let's say its feature and fix for handling generating URL generated field with custom_fields in {} |
Hey, Thanks for the additional info! |
I created separte pull request with fix only for fetching used custom fields (bug fix): Still think, that pull request #9234 is more complete solution, so that it behaviour is sam on DetailView as in ListView (displayed data changed from default definition regardles of DB saved field - it is Generated field after all). |
If one create custom field in studio of type URL and assign it in listview, no content is showed in the corresponding column in listview.
Issue
In studio I created custom field of type URL in Accounts module.
Then I assigned it to DetailView and ListView.
When I go to DetailView I see content of new field.
When I go to ListView there is no content in detail view.
Expected Behavior
If field of Type URL is assigned to ListView, conten should be displayed
Actual Behavior
There is no content in column on the ListView
Possible Fix
It is acctualy problem, that in include/ListView/ListViewData.php main_query returns empty string, since URL field is generated according to vardefs.
So one solution/workaround is to create logic_hook to populate correct data (it turn's out it is very simple):
Template than already replaces what should be replaced.
Steps to Reproduce
Context
I tried to make customization and relied to documentation, that I can put cutom fields to ListView
Apart from tme spent searching and debuging for cause, workaroujnd turns out to be prety simple.
So perhaps some documentation/example would be enough.
But it would be better if procesing of vardefs definiton and above code would be introduced somewhere in include/ListView/ListViewData.php so that this would work without need for logic_hook for each new custom field of type URL.
Your Environment
The text was updated successfully, but these errors were encountered: