At some point in the last week or so, the 5.x-8.x-dev branch stopped displaying any predefined options; editing elements that rely on even yes/no now gives me only an empty select field in the field editor modal. The definitions on the Predefined Options page are all still there, and all the fields work fine, at least until you edit them. Anyone else notice that?

Comments

CatherineOmega created an issue. See original summary.

jrockowitz’s picture

@CatherineOmega I can't duplicate this issue.

Can you upload an example?

Can you duplicate the issue using https://simplytest.me/project/drupal/8.2.x?add[]=webform?

Is there an example form or template that I could use to replicate this issue?

CatherineOmega’s picture

@jrockowitz yeah, I totally can't reproduce it on another install. I have no idea what I did, but I'll have to take a look at the database to figure this out. Argh.

At least it works if I create a new form via YAML in the meantime.

jrockowitz’s picture

I would bet that if you turn off javascript, the options will display. I think the issue is related to the Select2 element being hidden in the modal dialog.

You could also try right clicking on 'Edit' link for an element and opening a new tab.

jrockowitz’s picture

Status: Active » Postponed (maintainer needs more info)
gg4’s picture

StatusFileSize
new21.71 KB

Seeing this as well after upgrading from 8.x-5.0-beta9 to the latest dev.

jrockowitz’s picture

Status: Postponed (maintainer needs more info) » Needs review
StatusFileSize
new1.01 KB

I am pretty sure that #2858139: Add OptGroup support to WebformOption entity. is causing this issue.

Please try the attached patch, which I will probably just commit when all the tests pass.

gg4’s picture

Will do and report back. Also updating locally installed libraries as these have changed a bit as well in 8.x-5.0-beta9 to the latest dev.

  • jrockowitz committed 229fd78 on 8.x-5.x
    Issue #2860058 by jrockowitz, bonus, CatherineOmega: Predefined options...
jrockowitz’s picture

Status: Needs review » Fixed

I committed the patch. Please download the latest dev release to review.

gg4’s picture

Options are back. Nice work!

CatherineOmega’s picture

Works great, plus I'm glad to learn I totally didn't bungle updating this dev site like I thought!

Status: Fixed » Closed (fixed)

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