- First commit to issue fork.
- last update
almost 2 years ago Build Successful - @shivam_tiwari opened merge request.
- Status changed to Needs review
almost 2 years ago 12:26pm 3 August 2023 - Status changed to Needs work
almost 2 years ago 12:05pm 5 August 2023 - 🇮🇳India rushiraval
I have applied patch of MR !1 of Shivam_tiwari. Still said patch using the theme_styleswitcher_admin_styles_table & theme_styleswitcher_admin_styles_table theme function. These functions are deprecated. Remove these functions.
- First commit to issue fork.
- last update
over 1 year ago Build Successful - Status changed to Needs review
over 1 year ago 6:19pm 11 August 2023 - last update
over 1 year ago Build Successful - last update
over 1 year ago Patch Failed to Apply - last update
over 1 year ago Build Successful - last update
over 1 year ago Build Successful - Assigned to pingwin4eg
- Status changed to Needs work
over 1 year ago 1:02pm 7 November 2023 - 🇺🇦Ukraine pingwin4eg Zaporizhia 🇺🇦
Thank you folks for your work on this issue!
Tests are failing, so changing status to NW. Going to review and test everything myself.
- last update
over 1 year ago Build Successful - 🇺🇦Ukraine pingwin4eg Zaporizhia 🇺🇦
Closed MR, because it was not full.
-
+++ b/js/styleswitcher.js @@ -56,14 +56,16 @@ - // Update the cookie first. - Drupal.styleSwitcher.cookie(style.name); + if (style) { + // Update the cookie first. + Drupal.styleSwitcher.cookie(style.name); - // Now switch the stylesheet. Path is absolute URL with scheme. - $('#styleswitcher-css').attr('href', style.path); + // Now switch the stylesheet. Path is absolute URL with scheme. + $('#styleswitcher-css').attr('href', style.path); - // Cosmetic changes. - Drupal.styleSwitcher.switchActiveLink(style.name); + // Cosmetic changes. + Drupal.styleSwitcher.switchActiveLink(style.name); + } };
Is this necessary?
-
+++ b/styleswitcher.libraries.yml @@ -6,7 +6,7 @@ styleswitcher: - - core/jquery.once + - core/once
jQuery is still used in styleswitcher.js.
Interdiffs would save reviewers' time, by the way.
-
- 🇮🇳India vishal.kadam Mumbai
if
condition is added to resolve "Uncaught TypeError: Cannot read properties of undefined (reading 'name')" - 🇮🇳India vishal.kadam Mumbai
No. The same error is showing for D8 and D9 as well.
- 🇺🇦Ukraine pingwin4eg Zaporizhia 🇺🇦
Then it's a separate issue (and requires steps/explanation how it happens). This one is for compatibility fixes.
- Status changed to Needs review
over 1 year ago 4:09pm 10 November 2023 - last update
over 1 year ago 30 pass - last update
over 1 year ago Composer require failure -
pingwin4eg →
committed cd60eff1 on 8.x-2.x
Issue #3289881 by pingwin4eg: Declare Drupal 10 compatibility to run...
-
pingwin4eg →
committed cd60eff1 on 8.x-2.x
- last update
over 1 year ago 30 pass - last update
over 1 year ago CI error - last update
over 1 year ago 30 pass - 🇺🇦Ukraine pingwin4eg Zaporizhia 🇺🇦
Manual testing showed a bug - "dynamic" style switching doesn't work, you can see a style applied only after a page refresh or after opening another page. This misbehavior happens only in Drupal 10 on a real site, but not under the test (which is weird). So basically that is not an incompatibility with D10.
I'm going to commit the changes in the patch, and start a new issue for the described bug.
-
pingwin4eg →
committed 64687980 on 8.x-2.x
Issue #3289881 by vishal.kadam, shivam_tiwari, bharath-kondeti,...
-
pingwin4eg →
committed 64687980 on 8.x-2.x
- Issue was unassigned.
- Status changed to Fixed
over 1 year ago 9:35am 14 November 2023 - 🇺🇦Ukraine pingwin4eg Zaporizhia 🇺🇦
Opened 🐛 Fix dynamic style switching in D10 Active for the described bug.
Thanks again everyone who worked on compatibility fixes.
Automatically closed - issue fixed for 2 weeks with no activity.