Skip to content

Commit

Permalink
minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
mdnoble73 committed Apr 30, 2024
1 parent e984cc6 commit 77dd248
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
11 changes: 10 additions & 1 deletion code/web/sys/DBMaintenance/version_updates/24.05.00.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,17 @@ function getUpdates24_05_00(): array {
'sql' => [
'ALTER TABLE library ADD COLUMN allowMasqueradeWithUsername TINYINT NOT NULL DEFAULT 1',
]
]
], //allow_masquerade_with_username
//other
//jacob - PTFS Europe
'snippet_contains_analytics_cookies' => [
'title' => 'JS Snippet Contains Analytics Cookies',
'description' => 'Add a toggle for if a JS snippet contains analytics cookies or not.',
'continueOnError' => true,
'sql' => [
'ALTER TABLE javascript_snippets ADD COLUMN containsAnalyticsCookies TINYINT(1)'
]
], //Snippet_Contains_Marketing_Cookies


];
Expand Down
6 changes: 6 additions & 0 deletions code/web/sys/LocalEnrichment/JavaScriptSnippet.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,12 @@ public static function getObjectStructure($context = ''): array {
'description' => 'The JavaScript Snippet to add to pages',
'hideInLists' => true,
],
'containsAnalyticsCookies' => [
'property' => 'containsAnalyticsCookies',
'type' => 'checkbox',
'label' => 'Contains Analytics Cookies',
'description' => 'This snippet contains analytics cookies',
],
'libraries' => [
'property' => 'libraries',
'type' => 'multiSelect',
Expand Down

0 comments on commit 77dd248

Please sign in to comment.