Fatal error when creating a rule using the "Set a user expiration date" action

Created on 14 December 2024, 8 days ago

Problem/Motivation

When attempting to create a new rule that would automatically set the expiration date of a users account to 1 week after any log in, I discovered that the rule action that comes with user_expire module is completely broken.

Steps to reproduce

Install Rules module.
Add a new reaction rule at /admin/config/workflow/rules/reactions/add
React on event: User has logged in
Label: Set expiration
Save
Add an action
Action: Set a user expiration date
Continue
Context variables
(User) Switch to data selection and choose "account"
(Expiration timestamp) Switch to data selection and choose "@rules.current_date_context:current_date"

Save and save

Proposed resolution

Fix the rule plugin

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Active

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States trackleft2 Tucson, AZ πŸ‡ΊπŸ‡Έ

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024