Fix a bad default group setting in the SQL Report for download groups.
This commit is contained in:
parent
771fcd51bc
commit
a2012171d2
3 changed files with 17 additions and 3 deletions
|
|
@ -1,4 +1,5 @@
|
||||||
7.7.17
|
7.7.17
|
||||||
|
- fixed #10752: Missing SQL Report download group default
|
||||||
- fixed: #9595: Gallery layout corruption with old browsers
|
- fixed: #9595: Gallery layout corruption with old browsers
|
||||||
- fixed: Admin bar won't show multiple packages or prototypes with the duplicate titles
|
- 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
|
- fixed #10751: Only users in Content Managers group can make Shortcuts
|
||||||
|
|
|
||||||
|
|
@ -34,6 +34,7 @@ my $session = start(); # this line required
|
||||||
addFriendManagerSettings($session);
|
addFriendManagerSettings($session);
|
||||||
fixGalleyImageFolderStyle($session);
|
fixGalleyImageFolderStyle($session);
|
||||||
fixMapTemplateFolderStyle($session);
|
fixMapTemplateFolderStyle($session);
|
||||||
|
fixDefaultSQLReportDownloadGroup($session);
|
||||||
addExpireIncompleteSurveyResponsesWorkflow($session);
|
addExpireIncompleteSurveyResponsesWorkflow($session);
|
||||||
|
|
||||||
finish($session); # this line required
|
finish($session); # this line required
|
||||||
|
|
@ -72,6 +73,18 @@ sub fixMapTemplateFolderStyle {
|
||||||
print "DONE!\n" unless $quiet;
|
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
|
# Describe what our function does
|
||||||
sub fixGalleyImageFolderStyle {
|
sub fixGalleyImageFolderStyle {
|
||||||
|
|
|
||||||
|
|
@ -202,9 +202,9 @@ sub definition {
|
||||||
label=>$i18n->get("download mimetype"),
|
label=>$i18n->get("download mimetype"),
|
||||||
},
|
},
|
||||||
downloadUserGroup=>{
|
downloadUserGroup=>{
|
||||||
fieldType=>"group",
|
fieldType => "group",
|
||||||
defaultValue=>"text/html",
|
defaultValue => "7",
|
||||||
label=>$i18n->get("download usergroup"),
|
label => $i18n->get("download usergroup"),
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
push(@{$definition}, {
|
push(@{$definition}, {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue