On the mapping page, I have an existing mapping that I am editing. There is currently a selected Key. My mapping direction is only SF to Drupal, so I don't have an external ID field in Salesforce and now I want to unset the Key. There doesn't seem to be a way to do that.

Comments

aaronbauman’s picture

Version: 7.x-3.1 » 7.x-3.x-dev
Status: Active » Needs review
StatusFileSize
new1.01 KB

Here's a quick and dirty patch for this.

mariacha1’s picture

Status: Needs review » Needs work
StatusFileSize
new76.09 KB

I agree this is a nuisance, but the patch supplied doesn't work -- it sets the radio to the first entry in the table (which has a value of 0) instead of unsetting the key.

See:

Selects first entry

It's a step in the right direction, though. I'd prefer to see some kind of toggle for the key header "Uses Key" or "No Key" -- something like that, that would allow the validation to work as desired.

mariacha1’s picture

I took a stab at this, but got frustrated by how the key works. Should be easier once https://www.drupal.org/node/2565911 is accepted.

aaronbauman’s picture

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

OK - annoying to have to write javascript for this, but otherwise this is minimally invasive and solves the problem without waiting for the other, bigger issue.

  • aaronbauman committed af74e4f on 7.x-3.x
    Issue #2490862 by aaronbauman, mariacha1: Unable to unselect a key value...
aaronbauman’s picture

Status: Needs review » Fixed

  • aaronbauman committed 855b40f on 7.x-3.x
    Issue #2490862 - missed the new javascript file
    

Status: Fixed » Closed (fixed)

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