I get multiple fields in the dropdown for the contextual filter, geolocation entity argument source, with the same title. I cannot tell the difference among them

Comments

SocialNicheGuru created an issue. See original summary.

christianadamski’s picture

Status: Active » Postponed (maintainer needs more info)

No idea either. Provide a screenshot of the full view, or use developer tools to see the values of the select options

christianadamski’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)
maurizio.ganovelli’s picture

Version: 8.x-2.x-dev » 8.x-3.x-dev
Status: Closed (cannot reproduce) » Needs review
StatusFileSize
new1.64 KB

I faced the same issue on latest branch. I have these values in my filter:

  • node:structure:field_geolocation
  • node:activity:field_geolocation

but labels are the same "Content - Content type - Geolocation".
However there's no difference selecting one or other in view query.
In EntityArgument views argument plugin I notice that entity bundles are not taken in account. Only entity type is significant since is needed to get the right entityStorage used to load argument entity id.
I think that the dropdown values could be build only using [entity_type]:[field_name] pattern.
Attached a working patch that introduces a new pattern.

Let me know!
Thank you.

Status: Needs review » Needs work

The last submitted patch, 4: geolocation_entityargument.patch, failed testing. View results

christianadamski’s picture

Status: Needs work » Needs review
StatusFileSize
new1.99 KB

This patch
- removes the actual dependency on bundle
- adds the actual bundle label

@maurizio.ganovelli this is based on your patch. But we can't remove bundle from the config, as that would break existing installs.

  • ChristianAdamski authored bba2c7f on 8.x-3.x
    Issue #3014139 by ChristianAdamski, maurizio.ganovelli, SocialNicheGuru...
christianadamski’s picture

Status: Needs review » Fixed

Thanks!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.