From a0a02e8d6eb1595988c87d8a1e5792301c184ad6 Mon Sep 17 00:00:00 2001 From: Graham Knop Date: Tue, 2 Sep 2008 17:36:06 +0000 Subject: [PATCH] fixed: Some templates ship with isPublic=1 --- docs/changelog/7.x.x.txt | 1 + docs/upgrades/upgrade_7.5.21-7.6.0.pl | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/docs/changelog/7.x.x.txt b/docs/changelog/7.x.x.txt index b12a3d6e2..6f95f0007 100644 --- a/docs/changelog/7.x.x.txt +++ b/docs/changelog/7.x.x.txt @@ -1,4 +1,5 @@ 7.6.0 + - fixed: Some templates ship with isPublic=1 - fixed: DataForm export tab delimited doesn't work - fixed: Project Manager sometimes causes errors when adding users to a task - fixed: site navigation will sometimes show as half or not styled diff --git a/docs/upgrades/upgrade_7.5.21-7.6.0.pl b/docs/upgrades/upgrade_7.5.21-7.6.0.pl index 1d9542c16..f2ee62552 100644 --- a/docs/upgrades/upgrade_7.5.21-7.6.0.pl +++ b/docs/upgrades/upgrade_7.5.21-7.6.0.pl @@ -29,10 +29,17 @@ my $quiet; # this line required my $session = start(); # this line required removeDoNothingOnDelete( $session ); +fixIsPublicOnTemplates ( $session ); finish($session); # this line required +#---------------------------------------------------------------------------- +sub fixIsPublicOnTemplates { + my $session = shift; + $session->db->write('UPDATE `assetIndex` SET `isPublic` = 0 WHERE assetId IN (SELECT assetId FROM asset WHERE className IN ("WebGUI::Asset::RichEdit", "WebGUI::Asset::Snippet", "WebGUI::Asset::Template") )'); +} + #---------------------------------------------------------------------------- sub removeDoNothingOnDelete { my $session = shift;