Error when using webform placing block

Created on 24 June 2024, 5 months ago
Updated 8 July 2024, 5 months ago

Problem/Motivation

When adding a block and adding it to webforms I need to add a print button to the confirmation page to print a confirmation test. I placed the block, in webforms when you fill in what webform you need the block on, if you don't hit one of the three selects under it it throws errors.

Warning: Undefined property: Drupal\printjs\Plugin\Block\PrintJsBlock::$options in Drupal\printjs\Plugin\Block\PrintJsBlock->blockForm() (line 102 of modules/contrib/printjs/src/Plugin/Block/PrintJsBlock.php).
Warning: Trying to access array offset on value of type null in Drupal\printjs\Plugin\Block\PrintJsBlock->blockForm() (line 102 of modules/contrib/printjs/src/Plugin/Block/PrintJsBlock.php).
Please select which entity should be used to determine the current webform.

Steps to reproduce

Create a block and select webforms but do not select one of the three selects under the text field.

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States trigve hagen Washington DC

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024