Problem/Motivation
If a webform with conditional visibility logic is used as an activity, submitting results in an error:
TypeError: Drupal\webform\WebformSubmissionConditionsValidator::isElementVisible(): Argument #2 ($webform_submission) must be of type Drupal\webform\WebformSubmissionInterface, Drupal\lms\Entity\Answer given, called in /code/web/modules/contrib/webform/src/WebformSubmissionConditionsValidator.php on line 509 in Drupal\webform\WebformSubmissionConditionsValidator->isElementVisible() (line 524 of /code/web/modules/contrib/webform/src/WebformSubmissionConditionsValidator.php).
Steps to reproduce
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes
Issue fork lms_webform-3626820
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