Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
The revision timestamp of a UserpointsEntity always contains the timestamp of the creation date of the entity. From my understanding, it should rather contain the timestamp of the latest change.
Steps to reproduce
- Create UserpointsEntity
- Add points
- The timestamp will not change
Proposed resolution
- Update the timestamp when points are added or deduced
Remaining tasks
- Implementation
Issue fork userpoints-3346689
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
nico.b CreditAttribution: nico.b as a volunteer commentedI opened a merge request addressing the issue. I propose to just update the revision time every time a new revision is set since I cannot think of a scenario where you would not want to have this executed automatically.