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.
When sending a PATCH request to Drupal 8, I noticed that all the log messages coming from the Rest module were missing Entity IDs (ex: "Updated entity node with ID .").
The attached patch uses the $original_entity's ID, instead of trying to pull an ID from the passed in $entity (which only contains updatable fields/properties).
Comment | File | Size | Author |
---|---|---|---|
fix-rest-module-patch-log.patch | 877 bytes | samuel.mortenson | |
Comments
Comment #2
Boyquotes CreditAttribution: Boyquotes as a volunteer and commentedWe (Celdia https://www.drupal.org/u/celdia, vanilla-bear https://www.drupal.org/u/vanilla-bear and me https://www.drupal.org/u/boyquotes ) have reproduced this bug and we have tested this patch and it works
Comment #3
alexpottThe fix looks good. I was pondering whether or not test coverage was worth it. I don't think so. Committed 236206a and pushed to 8.0.x. Thanks!
Comment #5
celdia CreditAttribution: celdia commentedThanks for your testing and confirmation. I also think it must be good.