Fix a bad default group setting in the SQL Report for download groups.

This commit is contained in:
Colin Kuskie 2009-08-11 21:16:14 +00:00
parent 771fcd51bc
commit a2012171d2
3 changed files with 17 additions and 3 deletions

View file

@ -1,4 +1,5 @@
7.7.17
- fixed #10752: Missing SQL Report download group default
- fixed: #9595: Gallery layout corruption with old browsers
- fixed: Admin bar won't show multiple packages or prototypes with the duplicate titles
- fixed #10751: Only users in Content Managers group can make Shortcuts

View file

@ -34,6 +34,7 @@ my $session = start(); # this line required
addFriendManagerSettings($session);
fixGalleyImageFolderStyle($session);
fixMapTemplateFolderStyle($session);
fixDefaultSQLReportDownloadGroup($session);
addExpireIncompleteSurveyResponsesWorkflow($session);
finish($session); # this line required
@ -72,6 +73,18 @@ sub fixMapTemplateFolderStyle {
print "DONE!\n" unless $quiet;
}
#----------------------------------------------------------------------------
# Describe what our function does
sub fixDefaultSQLReportDownloadGroup {
my $session = shift;
print "\tFix bad default SQL Report Download groups... " unless $quiet;
$session->db->write(<<EOSQL);
UPDATE SQLReport SET downloadUserGroup='7' WHERE downloadUserGroup="text/html";
EOSQL
# and here's our code
print "DONE!\n" unless $quiet;
}
#----------------------------------------------------------------------------
# Describe what our function does
sub fixGalleyImageFolderStyle {