Describe the bug
When creating a new fieldmap, the URL is /wp-admin/options-general.php?page=object-sync-salesforce-admin&tab=fieldmaps&method=add. Because the fieldmap doesn't exist yet, it has no value for $fieldmap_status, which currently is called without checking for its existence first. This results in an error: PHP Notice: Undefined variable: fieldmap_status in /wp-content/plugins/object-sync-for-salesforce/templates/admin/fieldmaps-add-edit-clone.php on line 596.
To Reproduce
Steps to reproduce the behavior:
Create a new fieldmap
Look at the server logs
Expected behavior
This should not cause any server log entries, just as it does not when editing an existing fieldmap.
Describe the bug When creating a new fieldmap, the URL is
/wp-admin/options-general.php?page=object-sync-salesforce-admin&tab=fieldmaps&method=add
. Because the fieldmap doesn't exist yet, it has no value for$fieldmap_status
, which currently is called without checking for its existence first. This results in an error:PHP Notice: Undefined variable: fieldmap_status in /wp-content/plugins/object-sync-for-salesforce/templates/admin/fieldmaps-add-edit-clone.php on line 596
.To Reproduce Steps to reproduce the behavior:
Expected behavior This should not cause any server log entries, just as it does not when editing an existing fieldmap.