MinnPost / object-sync-for-salesforce

WordPress plugin that maps and syncs data between Salesforce objects and WordPress objects.
https://wordpress.org/plugins/object-sync-for-salesforce/
GNU General Public License v2.0
94 stars 51 forks source link

New Option to Disable Already Used Mapping Fields is Stuck On #415

Closed timnolte closed 3 years ago

timnolte commented 3 years ago

Describe the bug The new plugin setting that disables the reuse of already mapping WordPress and Salesforce fields seems to be stuck always on. Setting this flag on the plugin options screen has no affect and already mapped fields are always disabled. Note that we also have the

To Reproduce Steps to reproduce the behavior:

  1. Ensure the new "Prevent Duplicate Field Mapping?" option is unchecked.
  2. Add/edit a Field Mapping.
  3. Map some WordPress fields to Salesforce.
  4. Save & reload the Field Mapping.
  5. Fields already mapped are disabled and cannot be selected.

Expected behavior If the option "Prevent Duplicate Field Mapping?" is not enabled, or disabled again after having been enabled editing a field mapping should allow WordPress and Salesforce fields to be mapped again.

Screenshots https://imgur.com/a/Kzlp4ol https://imgur.com/a/BihAV4Q

Environment (please complete the following information):

jonathanstegall commented 3 years ago

Sigh. Thanks, @timnolte. I think this is fixed in #416, if you have a minute to test. I'll get this released today or tomorrow, otherwise.