mecachisenros / cf-civicrm

Caldera Forms CiviCRM Integration
GNU Affero General Public License v3.0
30 stars 26 forks source link

Add relationship start and end dates to the relationship processor #174

Open kirk-circle opened 4 years ago

kirk-circle commented 4 years ago

Overview

This pull request adds relationship start and end date fields to the relationship processor, as requested in issue #166.

Before

The relationship processor did not include fields for the relationship start and end dates.

Screenshot

After

The relationship processor includes optional fields for the relationship start and end dates. These are dropdowns which can be used to select a Field or a System Tag.

Screenshot

Technical Details

I have employed patterns used by other processors to iterate over the fields.

Comments

If no start or end date is supplied, then the processor's behaviour is unchanged. If a single relationship of the specified type between the specified contacts already exists, then its start and/or end dates will be updated. If multiple matching relationships already exist, then the processor will do nothing.

Upperholme commented 4 years ago

This looks helpful. Any chance of it being merged?