Problem/Motivation
After installing the module, PHP exception generated and the site is not reachable with:
The entity type gdpr_consent_agreement does not have an "revision_created" entity revision metadata key
Steps to reproduce
install Drupal >9 and install DGPR module
Proposed resolution
EDIT: /gdpr/modules/gdpr_consent/src/Entity/ConsentAgreement.php
AFTER:
* entity_keys = {
* "id" = "id",
* "label" = "title",
* "uuid" = "uuid",
* "uid" = "user_id",
* "langcode" = "langcode",
* "status" = "status",
* "revision" = "revision_id",
* },
ADD THIS:
* revision_metadata_keys = {
* "revision_user" = "revision_user",
* "revision_created" = "revision_created",
* "revision_log_message" = "revision_log"
* },
Remaining tasks
User interface changes
API changes
Data model changes
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | gdpr-agreement-revision-created-3178310.patch | 696 bytes | nessunluogo |
Issue fork gdpr-3178310
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 #2
ohmdesbois commentedWork for me with drupal 9.1.4
Thanks !
Comment #3
rohit.agharkar commentedWorked for me with Drupal core 9.1.6
Thanks!!
Comment #4
nessunluogo commentedI made a patch from @alfakom proposed solution.
Comment #8
alexdmccabeThanks everyone!