Open eden-i72 opened 5 years ago
Issue-Label Bot is automatically applying the label Type: Bug
to this issue, with a confidence of 0.92. Please mark this comment with :thumbsup: or :thumbsdown: to give our bot feedback!
Links: app homepage, dashboard and code for this bot.
Hello @eden-i72,
I've tried to reproduce your issue but it all works fine here. I can switch to any meta_key I want and that field data shows in the dropdown. Also when filtering on user role it keeps working fine.
Do you happen to have a dev environment that I can take a look at?
Issue Overview
My site has a Report pod with a Depositor custom relationship field. Depositor is related to Users. The Display Field in Selection List for the Depositor field is set to a custom user meta (custom field added by a different plugin) but the Depositor dropdown on the Add/Edit screen for the Report pod is showing the display name of each user instead.
EDITED 06/05 when I realized that I extended users after creating the relationship field (just switched the order of steps to reproduce)
Was able to reproduce this myself on a separate site using a field added to the author role by ACF Pro. WordPress environment and Pods package export below are still from the site where I saw the issue originally but I can provide that for the second site if needed.
Expected Behavior
The reports pod Depositor field should show the depositor code of each user in the dropdown.
Current Behavior
On the Add/Edit report screen (for the Report pod), the pod Depositor field shows the display name of each user even though it is set to display the custom field added to users.
I know that Pods can see the custom field because it displays it in a shortcode (
[pods name="user" id="2" field="wpc_cf_depositor_code"]
)Steps to Reproduce (for bugs)
[pods name="user" id="[whatever your user ID is]" field="wpc_cf_depositor_code"]
in the content. Publish it or save it as a draft, and view it.WP-Client-Specific Steps to Create a Custom Field
This is a paid plugin and I don't know if they have any sort of demo version that will allow you to do this for free. In case you are able to, here's how the custom field is set up:
In the WP Client plugin, go to Members > Custom Fields and click Add New Custom Field. In the Add Custom Field form:
Possible Solution
WordPress Environment
Pods Package Export (helpful!)
Workaround or Alternate Solution Until Bug is Addressed
Related Issues and/or PRs