Problem/Motivation

When viewing the logs-page of a user (user/uid/logs) without logs, there is a javascript error: Uncaught TypeError: drupalSettings.entity_activity is undefined

Steps to reproduce

View the logs page of a freshly created user or one without logs.

Proposed resolution

Add a if-statement preventing the error.

Remaining tasks

-

User interface changes

-

API changes

-

Data model changes

-

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:

Comments

SpadXIII created an issue. See original summary.

spadxiii’s picture

Status: Active » Needs review
flocondetoile’s picture

Looks good. Thanks for reporting and the fix.

  • SpadXIII authored 7f80c39c on 8.x-1.x
    Issue #3345146 by SpadXIII, flocondetoile: Javascript error viewing user...
flocondetoile’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.