Skip to content

CiviRule fails with anonymous user (e.g. online donation)#24

Open
MegaphoneJon wants to merge 1 commit into
futurefirst:masterfrom
MegaphoneJon:grantor-id-not-required
Open

CiviRule fails with anonymous user (e.g. online donation)#24
MegaphoneJon wants to merge 1 commit into
futurefirst:masterfrom
MegaphoneJon:grantor-id-not-required

Conversation

@MegaphoneJon

Copy link
Copy Markdown

I had a CiviRule set up to grant a point to anyone who makes a contribution.

Unfortunately, this caused an error because the CiviRule doesn't specify the grantor_contact_id - it relies on using the ID of the logged-in user. Which, for a typical online contribution, is no one.

However, I looked at the rest of the code and the database structure and saw no reason for the grantor to be a required field - and in fact if you delete a grantor, the database will set the grantor id to NULL.

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

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant