Fix issues with upgrading templates from 7.6.35 to 7.7.19. Fixes #10878.
This commit is contained in:
parent
9c2fb21670
commit
7d74429fca
19 changed files with 66 additions and 0 deletions
|
|
@ -1,6 +1,7 @@
|
|||
7.8.0
|
||||
- fixed #10856: no paginate in wiki keyword search
|
||||
- fixed #10877: getProfileUrl() broken
|
||||
- fixed #10878: Template issues in 7.7.19
|
||||
- fixed #10844: Ad Sales: No template variable Help
|
||||
- fixed #10873: Code editor breaks CSS comments
|
||||
|
||||
|
|
|
|||
47
docs/upgrades/packages-7.8.0/000001000001000045000014.json
Normal file
47
docs/upgrades/packages-7.8.0/000001000001000045000014.json
Normal file
|
|
@ -0,0 +1,47 @@
|
|||
{
|
||||
"storage" : [],
|
||||
"properties" : {
|
||||
"lastExportedAs" : null,
|
||||
"createdBy" : "3",
|
||||
"state" : "published",
|
||||
"newWindow" : "0",
|
||||
"extraHeadTagsPacked" : null,
|
||||
"synopsis" : null,
|
||||
"extraHeadTags" : null,
|
||||
"ownerUserId" : "3",
|
||||
"url" : "root/import/survey/surveyedit.css",
|
||||
"assetId" : "kwTL1SWCk0GlpiJ5zAAEPQ",
|
||||
"isPrototype" : "0",
|
||||
"isHidden" : "1",
|
||||
"groupIdEdit" : "12",
|
||||
"inheritUrlFromParent" : "0",
|
||||
"processAsTemplate" : "0",
|
||||
"className" : "WebGUI::Asset::Snippet",
|
||||
"lineage" : "000001000001000045000014",
|
||||
"stateChangedBy" : "3",
|
||||
"lastModified" : "1251936280",
|
||||
"groupIdView" : "7",
|
||||
"title" : "surveyedit.css",
|
||||
"mimeType" : "text/css",
|
||||
"skipNotification" : "0",
|
||||
"assetSize" : "5215",
|
||||
"status" : "approved",
|
||||
"menuTitle" : "surveyedit.css",
|
||||
"isLockedBy" : null,
|
||||
"stateChanged" : "1251849727",
|
||||
"revisionDate" : "1250243000",
|
||||
"isPackage" : "0",
|
||||
"usePackedHeadTags" : "0",
|
||||
"snippet" : "#editor_container {\r\n visibility: hidden;\r\n z-index: 100;\r\n}\r\n\r\n#loading-mask {\r\n position: absolute;\r\n left: 0;\r\n top: 0;\r\n width: 100%;\r\n height: 100%;\r\n z-index: 20000;\r\n background-color: white;\r\n opacity:0.6;\r\n filter:alpha(opacity=60);\r\n}\r\n\r\n#loading {\r\n position: absolute;\r\n left: 50%;\r\n top: 50%;\r\n padding: 2px;\r\n z-index: 20001;\r\n height: auto;\r\n margin: -35px 0 0 -30px;\r\n}\r\n\r\n#loading .loading-indicator {\r\n background: url(^Extras(\"wobject/Survey/rel_interstitial_loading.gif\");) no-repeat;\r\n color: #555;\r\n font: bold 13px tahoma,arial,helvetica;\r\n padding: 18px 80px;\r\n margin: 0;\r\n text-align: center;\r\n height: auto;\r\n z-index: 20002;\r\n}\r\n\r\n\r\ndiv.testarea {\r\n width: 200px;\r\n height: 100px;\r\n z-index: 999;\r\n border: 1px solid gray;\r\n background: #f7f7f7;\r\n position: absolute;\r\n top: 5%;\r\n left:5%;\r\n}\r\n\r\ndiv.trashcan { \r\n border: 1px solid gray;\r\n width: 175px; \r\n height: 50px; \r\n}\r\n\r\ndiv.editarea { \r\n\tmargin-top:40px;\r\n padding:10px; \r\n float:left;\r\n border: 1px solid gray;\r\n}\r\n\r\ndiv.editquestion { \r\n\tpadding:10px; \r\n\tfloat:left; \r\n}\r\ndiv.editanswer { \r\n\tpadding:10px; \r\n\tfloat:left; \r\n}\r\n\r\n#submitbutton { padding:20px; }\r\n\r\ndiv.entry { \r\n padding-bottom:10px;\r\n padding-left:10px;\r\n}\r\n\r\nul.draglist { \r\n list-style: none;\r\n margin:0;\r\n padding:0;\r\n}\r\n\r\nul.draglist li {\r\n margin: 1px;\r\n}\r\n\r\nul.questionList {\r\n position: relative;\r\n background: #f7f7f7;\r\n border: 1px solid gray;\r\n list-style: none;\r\n margin:0;\r\n padding:0;\r\n min-height: 40px\r\n}\r\n\r\nli.section {\r\n background-color: #CCCCFF;\r\n border:1px solid #7EA6B2;\r\n cursor: move; \r\n min-height: 10px;\r\n}\r\nli.question {\r\n background-color: #D1E6EC;\r\n border:1px solid #7EA6B2;\r\n cursor: move; \r\n\tpadding-left:10px; \r\n min-height: 10px;\r\n}\r\nli.answer {\r\n background-color: #F1FFB8;\r\n border:1px solid #7EA6B2;\r\n cursor: move; \r\n\tpadding-left:15px; \r\n min-height: 10px;\r\n}\r\n#sections-panel li.selected {\r\n background-image: url(^Extras(\"toolbar/bullet/moveRight.gif\"););\r\n background-position:99% center;\r\n background-repeat: no-repeat;\r\n font-weight:bold;\r\n}\r\n\r\n#goto-yui-ac {\r\n width:15em;\r\n margin-top:0.5em;\r\n}\r\n.wGwarning {\r\n background-color:#FF6666;\r\n border:1px solid red;\r\n margin:5px;\r\n padding:10px;\r\n}\r\n.warning {\r\n padding: 5px;\r\n}\r\n#sections-panel .bd {\r\n overflow: auto;\r\n background-color:#fff;\r\n padding:10px;\r\n}\r\n#buttons {\r\n height: 30px; \r\n}\r\n#sections-panel_c .yui-resize .yui-resize-handle-r {\r\n right: -6px; /* make room for the scroll-bars */\r\n}\r\n#sections-panel div.ft {\r\n font-size: 100%;\r\n}\r\n",
|
||||
"snippetPacked" : "#editor_container { visibility: hidden; z-index: 100; }#loading-mask { position: absolute; left: 0; top: 0; width: 100%; height: 100%; z-index: 20000; background-color: white; opacity:0.6; filter:alpha(opacity=60); }#loading { position: absolute; left: 50%; top: 50%; padding: 2px; z-index: 20001; height: auto; margin: -35px 0 0 -30px; }#loading .loading-indicator { background: url(^Extras(\"wobject/Survey/rel_interstitial_loading.gif\");) no-repeat; color: #555; font: bold 13px tahoma,arial,helvetica; padding: 18px 80px; margin: 0; text-align: center; height: auto; z-index: 20002; }div.testarea { width: 200px; height: 100px; z-index: 999; border: 1px solid gray; background: #f7f7f7; position: absolute; top: 5%; left:5%; }div.trashcan { border: 1px solid gray; width: 175px; height: 50px; }div.editarea { margin-top:40px; padding:10px; float:left; border: 1px solid gray; }div.editquestion { padding:10px; float:left; }div.editanswer { padding:10px; float:left; }#submitbutton { padding:20px; } div.entry { padding-bottom:10px; padding-left:10px; }ul.draglist { list-style: none; margin:0; padding:0; }ul.draglist li { margin: 1px; }ul.questionList { position: relative; background: #f7f7f7; border: 1px solid gray; list-style: none; margin:0; padding:0; min-height: 40px }li.section { background-color: #CCCCFF; border:1px solid #7EA6B2; cursor: move; min-height: 10px; }li.question { background-color: #D1E6EC; border:1px solid #7EA6B2; cursor: move; padding-left:10px; min-height: 10px; }li.answer { background-color: #F1FFB8; border:1px solid #7EA6B2; cursor: move; padding-left:15px; min-height: 10px; }#sections-panel li.selected { background-image: url(^Extras(\"toolbar/bullet/moveRight.gif\");); background-position:99% center; background-repeat: no-repeat; font-weight:bold; }#goto-yui-ac { width:15em; margin-top:0.5em; }.wGwarning { background-color:#FF6666; border:1px solid red; margin:5px; padding:10px; }.warning { padding: 5px; }#sections-panel .bd { overflow: auto; background-color:#fff; padding:10px; }#buttons { height: 30px; }#sections-panel_c .yui-resize .yui-resize-handle-r { right: -6px; /* make room for the scroll-bars */ }#sections-panel div.ft { font-size: 100%; }",
|
||||
"encryptPage" : "0",
|
||||
"cacheTimeout" : "3600",
|
||||
"tagId" : "JVJD4aPqct9tkc5qafKC6A",
|
||||
"isSystem" : "0",
|
||||
"isExportable" : "1",
|
||||
"revisedBy" : "3",
|
||||
"creationDate" : "1244488512",
|
||||
"parentId" : "5bnNzteN7w3NnK9mF4XiCg",
|
||||
"usePacked" : "0"
|
||||
}
|
||||
}
|
||||
Binary file not shown.
Binary file not shown.
BIN
docs/upgrades/packages-7.8.0/import_hierarchical-top-nav.wgpkg
Normal file
BIN
docs/upgrades/packages-7.8.0/import_hierarchical-top-nav.wgpkg
Normal file
Binary file not shown.
Binary file not shown.
BIN
docs/upgrades/packages-7.8.0/matrix-default-view-template.wgpkg
Normal file
BIN
docs/upgrades/packages-7.8.0/matrix-default-view-template.wgpkg
Normal file
Binary file not shown.
BIN
docs/upgrades/packages-7.8.0/new-matrix_matrix.css.wgpkg
Normal file
BIN
docs/upgrades/packages-7.8.0/new-matrix_matrix.css.wgpkg
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
docs/upgrades/packages-7.8.0/root_import_storymanager.wgpkg
Normal file
BIN
docs/upgrades/packages-7.8.0/root_import_storymanager.wgpkg
Normal file
Binary file not shown.
BIN
docs/upgrades/packages-7.8.0/root_import_survey.wgpkg
Normal file
BIN
docs/upgrades/packages-7.8.0/root_import_survey.wgpkg
Normal file
Binary file not shown.
Binary file not shown.
|
|
@ -32,6 +32,7 @@ my $session = start(); # this line required
|
|||
|
||||
# upgrade functions go here
|
||||
reorganizeAdSpaceProperties($session);
|
||||
fixTemplateSettingsFromShunt($session);
|
||||
|
||||
finish($session); # this line required
|
||||
|
||||
|
|
@ -57,6 +58,23 @@ sub reorganizeAdSpaceProperties {
|
|||
print "DONE!\n" unless $quiet;
|
||||
}
|
||||
|
||||
sub fixTemplateSettingsFromShunt {
|
||||
my $session = shift;
|
||||
print "\tClear isPackage and set isDefault on recently imported templates... " unless $quiet;
|
||||
ASSET: foreach my $assetId (qw/PBtmpl0000000000000137 CarouselTmpl0000000002 aIpCmr9Hi__vgdZnDTz1jw
|
||||
2CS-BErrjMmESOtGT90qOg 2rC4ErZ3c77OJzJm7O5s3w pbtmpl0000000000000220
|
||||
pbtmpl0000000000000221 2gtFt7c0qAFNU3BG_uvNvg PBtmpl0000000000000081
|
||||
ThingyTmpl000000000001 PcRRPhh-0KfvLLNIPdxJTw g8W53Pd71uHB9pxaXhWf_A/) {
|
||||
my $asset = WebGUI::Asset->newByDynamicClass($session, $assetId);
|
||||
next ASSET unless $asset;
|
||||
$asset->update({
|
||||
isPackage => 0,
|
||||
isDefault => 1,
|
||||
});
|
||||
}
|
||||
# and here's our code
|
||||
print "DONE!\n" unless $quiet;
|
||||
}
|
||||
|
||||
# -------------- DO NOT EDIT BELOW THIS LINE --------------------------------
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue