Problem/Motivation

After upgrade to 8.x-1.0-beta11, dependent field does not work.

Steps to reproduce

Upgrade from 8.x-1.0-beta10 to 8.x-1.0-beta11 and my dependent field don't work anymore

Proposed resolution

I have downgrade to 8.x-1.0-beta10

CommentFileSizeAuthor
#3 3190509-3.patch8 KBnejcramsak

Comments

Kris77 created an issue. See original summary.

davidkp’s picture

Just confirming this bug.

Dependent fields do not list records when creating content but do when editing a record.

nejcramsak’s picture

Status: Active » Needs review
StatusFileSize
new8 KB

Hi, i created a patch for this. I also added support for check boxes/radio buttons widget since only the select widget was working with dependent fields.

  • colan committed 2b3b98a on 8.x-1.x authored by nejcramsak
    Issue #3190509 by nejcramsak, Kris77, davidkp: Fixed dependent-field JS.
    
colan’s picture

Status: Needs review » Fixed

The PHP code looks fine, and the JS works, but I can't review JS myself as that's too front-endy for me. Feedback on the new code here is welcome. Thanks all.

From #2:

Dependent fields do not list records when creating content but do when editing a record.

For my site, it didn't work in either case, but now works with this patch.

However, I'm now seeing this error message after submitting the form:

1 error has been found: Class

If anyone else can reproduce this, please create a follow-up issue, and link to it from here.

#3: Thanks for the patch; I'll cut a new release right away to fix the current one. In the future, however, please don't add new features in bug-fix patches. Use separate issues instead.

colan’s picture

colan’s picture

Component: Code » Dependent fields

Status: Fixed » Closed (fixed)

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