Problem/Motivation

2 Errors are thrown when writing a test and adding a new section. One is a reference error and the other one is about $config['layout_builder_id'] not being set.

Steps to reproduce

Believe its as simple as creating a new section and errors are thrown. In my case it was written a PHPUnit Functional test to check if Section ID is there.

Proposed resolution

Remove invalid reference and change ?: if to ??, which does a isset check first.

CommentFileSizeAuthor
#2 fix-2-errors-3200856-1.patch1.45 KBistryker
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

iStryker created an issue. See original summary.

istryker’s picture

Status: Active » Needs review
StatusFileSize
new1.45 KB

Patch attached

Status: Needs review » Needs work

The last submitted patch, 2: fix-2-errors-3200856-1.patch, failed testing. View results

  • iStryker committed f60e137 on 2.0.x
    Issue #3200856: Fix Reference and none isset checker error
    
igorbiki’s picture

igorbiki’s picture

Status: Needs work » Fixed

Status: Fixed » Closed (fixed)

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