Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 292339

PHP notice displayed for forum blocks when there are no forum topics

$
0
0

This issue has novice tasks. If you are an experienced core developer and have multiple commit mentions, please review novices' work on these tasks rather than doing them yourself. Feedback from experienced contributors is valued.

Problem/Motivation

  1. Clean install of Drupal 8, standard profile.
  2. Enable the forum module.
  3. Add the "New forum topics" or "Active forum topics" block to any region.

See this PHP notice:

Notice: Undefined variable: elements in Drupal\forum\Plugin\Block\ForumBlockBase->build() (line 32 of core/modules/forum/lib/Drupal/forum/Plugin/Block/ForumBlockBase.php).

Proposed resolution

Fix the PHP notice :)

Remaining tasks

User interface changes

n/a

API changes

n/a


Viewing all articles
Browse latest Browse all 292339

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>