Let me know if I'm going overboard with the tickets folks...

I have some Salesforce mappings set up and I want to map to some term reference fields but they aren't available in the admin form so I decided to add another type - reference. I would love to use relation for everything but that's just not going to work for my project as yet.

Patch attached. This patch also includes code to narrow the options lists down to those specific to the bundle chosen.

So far I've added to entity_wrapper->type() value cases to salesforce_mapping_reference_fieldmap_pull_value:

list<taxonomy_term>
taxonomy_term

Other entity reference fields will have to have their value cases added as necessary

Comments

kostajh’s picture

Version: 7.x-3.0-alpha2 » 7.x-3.x-dev
Status: Active » Postponed

Thanks for the patch. Let's get #1896134: Properties option list specific to bundle when possible reviewed and then come back to this.

markisatacomputer’s picture

StatusFileSize
new9.78 KB

I've updated my local branch to avoid creating new terms unless the field instance has autocomplete/tagging widget. Here's the updated patch.

ohthehugemanatee’s picture

Issue summary: View changes
Status: Postponed » Needs work
Issue tags: +Needs reroll

This needs a reroll, if not a complete rewrite. Unfortunately this patch also includes some preliminary work on restricting fields to the selected bundle (#1896134: Properties option list specific to bundle when possible), which makes it hard to see what code does what functionality. Please keep your patches restricted to one issue at a time!

The related entities functionality is so poorly documented I can't tell if this patch is even necessary anymore. Can someone please advise on how it's supposed to work, and whether it should work with term_reference fields?

jumoke’s picture

I am looking for answers too. Should related_entities work with term_reference fields? Though it doesn't seem like it's doing that.

aaronbauman’s picture

Status: Needs work » Closed (won't fix)

7.x is no longer supported

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.