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.
Problem/Motivation
Recent change in 7.x-dev causes style.css to be created incorrectly in color.module.
Steps to reproduce
1. Use garland theme.
2. Change to anything except blue lagoon.
3. It's easier to see if you have a sidebar enabled.
4. Note the sidebar color looks messed up in the lower half. In style.css a lot of entries are incorrectly `#000000`
Proposed resolution
I don't know but it's from https://git.drupalcode.org/project/drupal/-/commit/248892a6a0eae7d64d963...
Remaining tasks
User interface changes
API changes
Data model changes
Release notes snippet
Comment | File | Size | Author |
---|
Issue fork drupal-3249605
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
- 3249605-color-module-broken changes, plain diff MR !1430
Comments
Comment #3
mcdruidThanks for catching this.
I'd like to add a test along with the fix - here's a first pass.
Might be good to add a couple more sets of test values.
We expect the test_only patch to fail, but if we add the tests to the MR they should pass.
Comment #4
mcdruidNR for tests.
Comment #6
mcdruidAdded some more test values, and have added the test to the MR.
Back to NR, but we expect this test-only patch to fail, whereas the MR should not.
Comment #8
longwaveThe test looks good and proves the fix works.
Hiding the test-only patch in an attempt to convince the bot that the MR is thing that is RTBC.
Comment #10
mcdruidThank you!
Comment #11
demeritcowboy CreditAttribution: demeritcowboy commentedThanks! Should I close the original merge request?
Comment #14
mpp CreditAttribution: mpp at AmeXio for District09 commentedThis fix removed the int conversion from https://www.drupal.org/i/3248752 which was a php 8.1 fix.
Re-added it in https://www.drupal.org/project/drupal/issues/3224299.
Comment #15
poker10 CreditAttribution: poker10 at ActivIT s.r.o. commented@mpp I have commented that in the META issue, please check here: #3224299-65: [META] Make Drupal 7 core compatible with PHP 8.1