Uploaded image for project: 'CiviVolunteer'
  1. CiviVolunteer
  2. VOL-99

Business Logic for Managing and Implementing Campaign Integration

    Details

    • Type: New Feature
    • Status: Open
    • Priority: Trivial
    • Resolution: Unresolved
    • Affects Version/s: 2.0
    • Fix Version/s: None
    • Labels:
      None
    • Versioning Impact:
      Patch (backwards-compatible bug fixes)
    • Documentation Required?:
      User and Admin Doc
    • Epic Link:

      Description

      At the highest level, users will be able to assign a Campaign to a Project. Child Activities will inherit the Campaign.

      Support for nested Projects should be included. Whenever the value of a Project's Campaign is changed, that value should be assigned to child Projects; whenever a Project is assigned as a child of another Project, the parent's Campaign should be looked up so that the child can inherit it.

      CRM_Volunteer_BAO_Project::create() should be modified to look up children if a Campaign parameter was supplied. The results of this lookup should be looped through and updated with the new Campaign value.

      CRM_Volunteer_BAO_Project::create() should be modified to check the value of entity_table before saving; if the parent entity is a Volunteer Project, CRM_Volunteer_BAO_Project::retrieveByID() can used used to get the parent Campaign.

      CRM_Volunteer_BAO_Project::retrieve will probably not need changes.

      We should add units tests for these changes.

        Attachments

          Activity

            People

            • Assignee:
              pittstains Frank J. Gómez
              Reporter:
              ginkgomzd Michael Z Daryabeygi
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:

                Time Tracking

                Estimated:
                Original Estimate - 4 hours
                4h
                Remaining:
                Remaining Estimate - 4 hours
                4h
                Logged:
                Time Spent - Not Specified
                Not Specified