@see #1820442: Panelizer for Comments where comment support was added. Unfortunately this broke (well, raises notices) on pages that don't use comment module at all.

Also @see #1645716: Notices when taxonomy module is not enabled which had the same issue with taxonomy terms.

This simple patch fixes it.

CommentFileSizeAuthor
#1 2204483-1.patch1.02 KBfubhy

Comments

fubhy’s picture

Status: Active » Needs review
StatusFileSize
new1.02 KB
joelpittet’s picture

Status: Needs review » Reviewed & tested by the community

Gave this a test, does exactly that, fixes the notices for the comment entity.

the error messages that were showing up were the following:

Invalid argument supplied for foreach() PanelizerEntityDefault.class.php:298                                                                                                                              
Invalid argument supplied for foreach() PanelizerEntityDefault.class.php:389

Thanks for the patch @fubhy!

rei’s picture

superb patch

damienmckenna’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

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