Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • C civirules
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 43
    • Issues 43
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 5
    • Merge requests 5
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Extensions
  • civirules
  • Issues
  • #86
Closed
Open
Created Jun 08, 2020 by Sandor Semsey@semseysandorContributor

"Last Contribution of a Contact" Condition not working properly

Overview

Last Contribution of a Contact condition is never (or always - dependig on operator) valid.

Reproduce

  1. CiviCRM Drupal Sandbox
  2. Create new CiviRule:
    • trigger: contribution is added
    • condition: last contribution of a contact
      • operator: last contribution is n days ago
      • compare value: 2 Screenshot_from_2020-06-08_16-23-38
  3. Select random contact (Individual)
  4. Delete all contribution of selected contact (to not interfere with testing)
  5. Record a new contribution for that contact with Date Received 2 days ago
  6. Check CiviRule --> not triggered

There are several ways to reproduce the bug:

  • set operator: contribution is more than n days ago --> trigger always fires
  • set operator: contribution is less than n days ago --> trigger never fires

Comments

On update rule screen number of days is missing from condition description. I believe the values set for the days aren't retrieved.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking