when you try to delete a code-based fieldmap, nothing happens.
make it explicitly clear, from the overview page, that a fieldmap is enabled or disabled.

Comments

EvanDonovan’s picture

EvanDonovan’s picture

I guess that one's newer, but it has more detail.

EvanDonovan’s picture

Here's my text from that issue. Flagged it as duplicate:

This is actually both a UI and API request. I have noticed now that the default fieldmaps are showing up for Salesforce API (they weren't before), that I have a bunch of fieldmaps that I don't want to use for my exports. I would like to be able to set certain ones (such as the defaults) to be disabled.

disabled would be a boolean property of the $fieldmap object, i.e., $fieldmap->disabled.

When disabled, fieldmaps would appear on the fieldmaps tab to be greyed out until reenabled, and when salesforce_api_salesforce_field_map_load_all() was called, they would not be returned unless the optional $show_disabled parameter was passed, set to TRUE.

This would also help me in my work with uc_sf_order.module since the dropdowns can get confusing if there a lot of different choices for field mapping. I'm writing a patch today that will mitigate this issue by including part of the user-provided description for each fieldmap in the select box, but it could still be improved by letting people disable fieldmaps entirely.

If I have time, I may write a patch for this, if you think it is a good idea.

aaronbauman’s picture

Priority: Normal » Major

bump

EvanDonovan’s picture

Issue tags: +7.x-2.x, +D7 bug

Sorry I haven't worked on this yet. Maybe we can get it into D7 soon, and then backport.

vasike’s picture

subscribe. also i think this is useful for the (default) fieldmaps examples for the Basic Page and User

kostajh’s picture

Status: Active » Closed (won't fix)
kostajh’s picture

Title: add enable/disable for fieldmaps » Allow fieldmaps to be enabled/disabled
Version: 6.x-2.x-dev » 7.x-3.x-dev
Priority: Major » Normal
Status: Closed (won't fix) » Postponed

Let's get this into 7.x-3.x once #1439400: Provide enabled/disabled state handling in Entity API is resolved.

mariacha1’s picture

Component: salesforce_api » Code
Issue summary: View changes
Status: Postponed » Closed (outdated)

I don't believe this request actually makes sense anymore with the 7.x-3.x version. There's also been no further interest in it. Closing.