I use bundle id as the main key for js.

However, when the bundle id has a colon in it, the js function isn't workable.

$bundle_id = $items->getFieldDefinition()->getTargetBundle();

"profile_form:shipping-profile"

Comments

cobenash created an issue. See original summary.

cobenash’s picture

StatusFileSize
new14.74 KB

Quick patch.

Also, according to the drupal style guild, did some coding style changes.

cobenash’s picture

cobenash’s picture

StatusFileSize
new14.79 KB

uploaded the correct one.

  • cobenash committed 3230397 on 8.x-1.x
    Issue #3105559 by cobenash: The js isn't workable when the id contains...

  • cobenash committed 6ddf531 on 8.x-1.x
    Issue #3105559 by cobenash: The js isn't workable when the id contains...
cobenash’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

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