verbb / comments

A Craft CMS plugin for managing comments directly within the CMS.
Other
137 stars 33 forks source link

Page crashes when viewing comment from a deleted user in CP #220

Closed tamlyn closed 3 years ago

tamlyn commented 3 years ago

Description

Twig\Error\RuntimeError: Impossible to access an attribute ("cpEditUrl") on a null variable. 
in /app/vendor/verbb/comments/src/templates/comments/_edit.html:134

Steps to reproduce

  1. Create a user
  2. Add a comment as that user
  3. Delete that user
  4. The comment is shown in the control panel comment view as being by [Deleted User] image
  5. Click to view the comment
  6. 💥

Additional info

Additional context

engram-design commented 3 years ago

Fixed in 1.8.6