Support start/end dates on relationship create/update; related fixes
This supports relationship start/end dates on "Create or Update Relationship" and fixes some related logic errors.
Support Start/End Dates in "Create or Update Relationships"
-
getParameterSpecification()
is identical in bothCreateOrUpdateRelationship
andCreateRelationship
which it extends, so I removedgetParameterSpecification()
from the former. - Added handling of the start/end dates in
CreateOrUpdateRelationship::doAction()
. - Improved label of "Set Start Date?" to "Set Start Date to Today?".
Fixed logic errors
- In
createRelationship()
, if you enable "Set Start Date", it ignores both the Start Date and End Date parameters. I modified it to only ignore the Start Date parameter. - In
createOrUpdateRelationship()
, if an existing relationship is found, the end date is set to NULL. I don't think this is intentional, but if it is, I can put it back.