6.2.6 bugfixes

This commit is contained in:
JT Smith 2004-09-30 01:16:02 +00:00
parent 9e38cb81e0
commit d2a301e02b
24 changed files with 171 additions and 102 deletions

View file

@ -73,6 +73,7 @@ print "\tResetting user languages.\n" unless ($quiet);
my ($defaultLangId) = WebGUI::SQL->quickArray("select dataDefault from userProfileField where fieldName='language'");
$defaultLangId =~ s/\[//;
$defaultLangId =~ s/\]//;
$defaultLangId = 1 if ($defaultLangId > 21);
my $langs = {
1 => "English",
2 => "German",
@ -97,7 +98,9 @@ WebGUI::SQL->write("update userProfileData set fieldData='".$langs->{$defaultLan
WebGUI::SQL->write("update userProfileData set fieldData='English' where fieldName='language' and fieldData=1");
WebGUI::SQL->write("alter table page change languageId languageId varchar(50) not null default 'English'");
foreach my $key (keys %{$langs}) {
WebGUI::SQL->write("update page set languageId=".quote($langs->{$key})." where languageId=".$key);
my $langId = $key;
$langId = 1 if ($key > 21);
WebGUI::SQL->write("update page set languageId=".quote($langs->{$langId})." where languageId=".$key);
}
#--------------------------------------------

View file

@ -1,5 +1,5 @@
insert into webguiVersion values ('6.2.3','upgrade',unix_timestamp());
update collateralFolder set parentId='-1' where parentId='0';
update collateralFolder set parentId='-1' where collateralFolderId='0';
delete from template where namespace='Navigation' and templateId='6';

View file

@ -2,5 +2,5 @@ insert into webguiVersion values ('6.2.5','upgrade',unix_timestamp());
update template set template='^JavaScript(\"<tmpl_var session.config.extrasURL>/textFix.js\");\r\n<tmpl_if htmlArea3.supported> \r\n\r\n^RawHeadTags(\r\n <script type=\'text/javascript\'> \r\n _editor_url = \'<tmpl_var session.config.extrasURL>/htmlArea3/\'; \r\n _editor_lang = \'en\'; \r\n </script>\r\n\r\n <script type=\'text/javascript\' src=\'<tmpl_var session.config.extrasURL>/htmlArea3/htmlarea.js\'> \r\n </script>\r\n\r\n <script language=\'JavaScript\'> \r\n HTMLArea.loadPlugin(\'TableOperations\'); \r\n </script>\r\n);\r\n\r\n<script language=\"JavaScript\"> \r\nfunction initEditor() { \r\n editor = new HTMLArea(\"<tmpl_var form.name>\"); \r\n editor.registerPlugin(TableOperations); \r\n\r\n setTimeout(function() { \r\n editor.generate(); \r\n }, 500); \r\n return false; \r\n} \r\nwindow.setTimeout(\"initEditor()\", 250); \r\n</script> \r\n\r\n</tmpl_if> \r\n\r\n<tmpl_var textarea> ' where templateId=6 and namespace='richEditor';
update page set parentId=0 where parentId is null;
update page set parentId=0 where parentId='';
update page set parentId='0' where parentId is null;
update page set parentId='0' where parentId='';

View file

@ -1,3 +1,4 @@
insert into webguiVersion values ('6.2.6','upgrade',unix_timestamp());
update collateralFolder set parentId='0' where parentId='-1' and collateralFolderId<>'0';
alter table WSClient change call callMethod text;