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

Command icon 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:

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

nico.b created an issue. See original summary.

nico.b’s picture

Status: Active » Needs review

I 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.