- 🇦🇹Austria kevin.pfeifer
I also have a project with the drupal/shortcode module and the patch from #5 fixes the problem!
- 🇺🇸United States Farnoosh
A quick solution to remove the error for now on drupal 10.1.0
- Status changed to RTBC
about 1 year ago 1:14pm 29 August 2023 - last update
about 1 year ago 28,526 pass - last update
about 1 year ago Custom Commands Failed - last update
about 1 year ago 28,526 pass - last update
about 1 year ago 28,526 pass - last update
about 1 year ago 29,470 pass - Status changed to Needs work
about 1 year ago 5:41am 1 September 2023 The Needs Review Queue Bot → tested this issue. It fails the Drupal core commit checks. Therefore, this issue status is now "Needs work".
This does not mean that the patch needs to be re-rolled or the MR rebased. Read the Issue Summary, the issue tags and the latest discussion here to determine what needs to be done.
Consult the Drupal Contributor Guide → to find step-by-step guides for working with issues.
- Status changed to Needs review
about 1 year ago 4:02am 6 September 2023 - last update
about 1 year ago 28,526 pass - Status changed to Needs work
about 1 year ago 2:00pm 6 September 2023 - 🇪🇸Spain saganakat
Hello,
Thank you for the contribution.
I've encountered a similar issue with the nd_visualshortcodes module.
Applying the patch from the merge request using Composer:
"patches": { "drupal/core": { "[3291764] The [0] hatch in misc/vertical-tabs.js causes issues if there are multiple forms with vertical tabs.": "https://git.drupalcode.org/project/drupal/-/merge_requests/2420.patch" } }
It worked for me. Thank you very much!
Tested on Drupal 9.5.11
- 🇺🇸United States bnjmnm Ann Arbor, MI
The patch solution is a bit more complex than it needs to be. Looping through the results called by get() should be sufficient as it will simply not loop through anything if there are no results
.siblings(':hidden.vertical-tabs__active-tab')[0].value = this.details.attr('id');
can be replaced with
.siblings(':hidden.vertical-tabs__active-tab').get().forEach((hidden) => hidden.value = this.details.attr('id');)
The issue summary currently suggests a solution that 1) would not work as jQuery does not have a
.value
property 2) suggests reverting back to jquery value settings, which our linter would not allow.Update the suggestion to something that reflects what is actually happening.
As a committer / FEFM I'm fine with no tests on this as long as the scope of changes is just ensuring that
value
is not called on a result that might be empty. - 🇮🇳India gauravvvv Delhi, India
Gauravvvv → changed the visibility of the branch 3291764-the-0-hatch to hidden.
- Merge request !8366Issue #3291764: The [0] hatch in misc/vertical-tabs.js causes issues if there... → (Closed) created by Unnamed author
- Status changed to Needs review
5 months ago 3:36am 11 June 2024 - First commit to issue fork.
- Status changed to Needs work
5 months ago 8:09pm 17 June 2024 - 🇺🇸United States smustgrave
Adding back the issue summary tag from #20.
Can it be updated to include the solution and why it's needed. Currently it's showing the diff of the MR essentially
Thanks!
- Status changed to Needs review
5 months ago 6:24am 19 June 2024 - Status changed to RTBC
5 months ago 4:12pm 25 June 2024 - 🇺🇸United States smustgrave
Thank you @Utkarsh_33 for providing the additional detail.
Believe all feedback has been addressed
- Status changed to Fixed
5 months ago 7:41am 27 June 2024 - 🇫🇷France nod_ Lille
Committed and pushed 8c9ff22228 to 11.x and 035142460f to 11.0.x and 10691987c8 to 10.4.x and c55ad7b289 to 10.3.x. Thanks!
Automatically closed - issue fixed for 2 weeks with no activity.