After upgrading to 2.1 the answers to the radio buttons using 'equals' don't display in the formbuilder.

It seems to work if I use the codebase from git so it looks like more updates are required to make it appear. For example: https://git.drupalcode.org/issue/webform_score-3181429/-/commit/7cafbdaf... and https://git.drupalcode.org/issue/webform_score-3181429/-/blob/3181429-we...

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

rviner created an issue. See original summary.

hilly510’s picture

It looks like this issue goes deeper, as well. When editing older Webforms with quiz elements, I'm getting a lot of errors in the logs:
Drupal\Component\Plugin\Exception\PluginNotFoundException: The "" plugin does not exist. Valid plugin IDs for Drupal\webform_score\Plugin\WebformScoreManager are: equals, contains, sum, maximum in Drupal\Core\Plugin\DefaultPluginManager->doGetDefinition() (line 53 of /app/web/core/lib/Drupal/Component/Plugin/Discovery/DiscoveryTrait.php).
TypeError: Argument 1 passed to Drupal\Core\Form\SubformState::createForSubform() must be of the type array, null given, called in /app/web/modules/contrib/webform_score/src/Plugin/WebformElement/QuizTrait.php on line 119 in Drupal\Core\Form\SubformState::createForSubform() (line 56 of /app/web/core/lib/Drupal/Core/Form/SubformState.php)

It seems like the form structure changed with the Webform 6 upgrade, but the code wasn't thoroughly reviewed.

hilly510’s picture

I've created a merge request that reuses a lot of the code in the links above, with a few extra lines because they didn't get my all the way to the point of loading in the saved properties.

hilly510’s picture

Status: Active » Needs review

Nigel Cunningham made their first commit to this issue’s fork.

nigelcunningham’s picture

Status: Needs review » Fixed

Thanks for your work and apologies for my delay in getting around to this.

Looks good to me; merging.

Status: Fixed » Closed (fixed)

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