fixed: Some templates ship with isPublic=1

This commit is contained in:
Graham Knop 2008-09-02 17:36:06 +00:00
parent 67d9982d12
commit a0a02e8d6e
2 changed files with 8 additions and 0 deletions

View file

@ -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

View file

@ -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;