Closed (fixed)
Project:
EU Cookie Compliance (GDPR Compliance)
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
28 Aug 2018 at 13:45 UTC
Updated:
3 Aug 2019 at 11:09 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
tassilogroeper commentedComment #3
svenryen commentedGood point. Thanks for the patch!
Comment #4
tassilogroeper commentedSorry, forgot about the JS call to the "euCookieComplianceLoadScripts" function.
Comment #5
svenryen commentedThanks. I'll take a look later.
Comment #6
duaelfrHi there!
That's a very good point. Those empty styles and scripts should be avoided when not necessary.
The #4 is almost good except for the following:
You can't do this as there is some unrelated code that should be run after this attachment! (lines 322 to 340)
You should wrap the attachment creation as you did with the previous one.
Comment #7
duaelfrFixed #6
Comment #9
duaelfrThe coding standards test failures are not related to the attached patch.
Comment #10
sasanikolic commentedWhy is this check really needed? Can we try to avoid that?
Comment #11
bès commentedPatch Reroll on the 8.x-1.3 module version
Comment #13
svenryen commentedComment #14
svenryen commentedWe would also need a patch for d7.
Comment #15
bès commentedReroll again
Comment #17
svenryen commentedComment #18
svenryen commentedI'm not sure this code on line 357 and 358 in the patch should be excluded when there is no css config. To me this doesn't seem right. Those lines were introduced in #2669028: No cache invalidation when settings change. and are not related to the css issue at hand.
Do you have any details, @Bès or @DuaelFr?
Comment #19
rodlangh commentedPatch Reroll on the 8.x-1.6 module version.
Altered the patch according to the comment by @svenryen. Seems to me the cache tags should always be included?
Added an extra check in the js file: savePreferencesAction method also loads the scripts.
Comment #21
berdirLooks good now, I think. Agreed that the cache tags need to be outside.
Comment #22
svenryen commentedThanks for the review. I'll commit later.
Comment #23
svenryen commentedThere was a script load related to the new categories feature that the patch in #19 didn't cover. I added an additional check there, as I think the script would otherwise fail.
Also, patch parted to D7 is attached.
@Berdir, are you free to review this patch again?
Comment #24
svenryen commentedComment #27
svenryen commentedSince the added code in #23 was minimal (barely adding another check on the existence of the function), I'll go ahead and commit these changes. Thanks to all who helped.
Comment #30
duaelfrThank you for your work on this much useful module! :)