Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Issue #2650994: Javascript states not working for boolean fields updated formatters to fix an issue with states http://cgit.drupalcode.org/drupal/commit/core/lib/Drupal/Core/Field/Plug... and the result input for timestamps ended up with a double name="name="
$elements['custom_date_format']['#states']['visible'][] = array(
- ':input[name="options[settings][date_format]"]' => array('value' => 'custom'),
+ ':input[name="name="fields[' . $this->fieldDefinition->getName() . '][settings_edit_form][settings][date_format]"]' => array('value' => 'custom'),
);
Solution remove the extra name=".
Comment | File | Size | Author |
---|---|---|---|
#11 | 2662592-fix-timestamp-formatter-states.patch | 893 bytes | Dave Reid |
#4 | issue-2662592-4.patch | 893 bytes | marcingy |
|
Comments
Comment #2
marcingy CreditAttribution: marcingy at Examiner.com commentedComment #3
marcingy CreditAttribution: marcingy at Examiner.com commentedComment #4
marcingy CreditAttribution: marcingy at Examiner.com commentedComment #5
swentel CreditAttribution: swentel commentedAh crap :)
Comment #6
slashrsm CreditAttribution: slashrsm at Examiner.com commentedYes, looks good.
Comment #8
catchCommitted/pushed to 8.1.x, thanks!
Comment #9
Dave ReidThis also applies to 8.0.x. Isn't there a standard procedure to at least check if it needs to be committed there too?
Comment #11
Dave ReidBackported to 8.0.x.
Comment #12
Dave ReidWow, there's literally no difference in my patch vs the earlier one. Is the new testbot quite picky?
Comment #13
Dave ReidOh, it tried to apply it to 8.1.x (which already has the patch) instead of 8.0.x.
Comment #14
swentel CreditAttribution: swentel commentedComment #15
catchYes, that's done by setting the issue to 8.0.x - then whoever's committing the patch will check it against the bc policy and either commit it there, or explain why they haven't. This issue was against 8.1.x so I didn't bother.
If an issue doesn't get committed to 8.0.x, then it just means people have to wait until April 20th to get it. Given the number of issues in the RTBC queue, (132 8.x commits in the past four weeks) I'm more concerned about getting them committed to at least once branch (or CNW so they're not in the RTBC queue sitting around) so that everyone gets them eventually, than spending lots of time figuring out which issues can and cannot be committed to 8.0.x individually. When people really care about an issue being in 8.0.x, they can re-open the issue like you've done.
Comment #16
Dave ReidHrm, that's a bit concerning. I know it the past it's been customary of the committer to at least ask if it applies to a lower version but I guess the onus can be on the OP as well. It's just especially troubling that to me, it feels like we're not even bothering to try and fix 8.0.x bugs, because it doesn't matter (that's the impression I got, sorry if I'm totally misreading).
Comment #17
catch7.x EOL is in 2-5 years, 8.0.x EOL is in two months. So the applicability to 7.x or not is far more important than the applicability to 8.0.x.
Given there are ~5,000 bugs, ~500 major bugs and ~7 critical bugs (or at least reports) all unfixed in any 8.x branch at all, one or two bugs taking an extra couple of months to get into a tagged stable release doesn't seem like the worst trade-off. Especially since several issues over the past few months have been delayed or held up by discussions about whether they can get into 8.0.x due to our (albeit strict) bc policy for patch releases. Better to commit to 8.1.x and move on than have things potentially lost in the queue for months as those discussions often fizzle out at CNR. Also at least two recent patches caused regressions in 8.0.x despite being 'no API change' bug fixes so we do need to properly check every patch that goes into 8.0.x, given the monthly release cycle and the expectation of more stability than either 8.x minor releases or 7.x bug fix releases.
And regardless of that, plenty of commits are happening against 8.0.x:
Comment #18
alexpottI can't see any reason not to fix this in 8.0.x as well. I just did a cherry pick. Committed b352a6c and pushed to 8.0.x. Thanks!
It is tricky for a committer to think of everything and when an issue is filed against 8.1.x. It is okay to commit only to that branch and for the community to then ask for it to be committed to another branch.