Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix default activity on webform if filed on case #950

Open
wants to merge 1 commit into
base: 6.x
Choose a base branch
from

Conversation

jitendrapurohit
Copy link
Collaborator

Overview

Fix default activity on webform if filed on case

Before

Incorrect activity is loaded on the webform, if file on case is enabled in webform config.

To replicate:

  • Create a webform with Activity & Case.
  • Case Tab: Update Existing Case: Ongoing; Case Type: Housing Support; Enable Case Subject
  • Activity Tab: Update Existing Activity: Scheduled; Activity Type: Followup; File on Case: Case 1; Enable Activity Subject.
  • In CiviCRM: Create 2 cases on your logged in contact with case status: Resolved & set the second case status as Ongoing.
  • Ensure both the cases have followup activity with a value in subject field.
  • Load the webform with c1 as the logged in contact.
  • Current Outcome: The webform loads the activity subject from the Resolved case.
  • Expected Outcome: The webform must load the Ongoing Case followup activity subject into the subject field as per our activity config settings.

After

Correct Activity subject is loaded.

Technical Details

When the activity is loaded in preprocess, ensure it takes case_id into consideration if configured in settings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant