bug fixes
This commit is contained in:
parent
a93a2d05d1
commit
8a656aece7
4 changed files with 39 additions and 6 deletions
|
|
@ -10,8 +10,13 @@
|
||||||
- fix [ 1225432 ] plainblack.com: print is broken
|
- fix [ 1225432 ] plainblack.com: print is broken
|
||||||
- fix [ 1249882 ] Make page printable in RWG broken
|
- fix [ 1249882 ] Make page printable in RWG broken
|
||||||
- fix [ 1255313 ] r_printable includes index.pl sometimes
|
- fix [ 1255313 ] r_printable includes index.pl sometimes
|
||||||
|
- fix [ 1248006 ] Spell check create.sql
|
||||||
|
- fix [ 1248040 ] plainblack forum search not showing dates
|
||||||
|
- fix [ 1265771 ] assets that were formerly packages are still on packageList
|
||||||
|
|
||||||
|
|
||||||
6.7.1
|
6.7.1
|
||||||
|
- fix [ 1251608 ] can't login
|
||||||
- fix [ 1206046 ] function tinyMCE_WebGUI_Cleanup don't work
|
- fix [ 1206046 ] function tinyMCE_WebGUI_Cleanup don't work
|
||||||
- Fixed a fatal error with Redirects
|
- Fixed a fatal error with Redirects
|
||||||
- Fixed a fatal error in the date field in the new pluggable forms system.
|
- Fixed a fatal error in the date field in the new pluggable forms system.
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -7,6 +7,7 @@ use Getopt::Long;
|
||||||
use strict;
|
use strict;
|
||||||
use WebGUI::Session;
|
use WebGUI::Session;
|
||||||
use WebGUI::SQL;
|
use WebGUI::SQL;
|
||||||
|
use WebGUI::Asset;
|
||||||
|
|
||||||
my $configFile;
|
my $configFile;
|
||||||
my $quiet;
|
my $quiet;
|
||||||
|
|
@ -20,7 +21,33 @@ WebGUI::Session::open("../..",$configFile);
|
||||||
WebGUI::Session::refreshUserInfo(3);
|
WebGUI::Session::refreshUserInfo(3);
|
||||||
|
|
||||||
WebGUI::SQL->write("insert into webguiVersion values (".quote($toVersion).",'upgrade',".time().")");
|
WebGUI::SQL->write("insert into webguiVersion values (".quote($toVersion).",'upgrade',".time().")");
|
||||||
|
fixSpelling();
|
||||||
|
fixCSTemplate();
|
||||||
|
|
||||||
WebGUI::Session::close();
|
WebGUI::Session::close();
|
||||||
|
|
||||||
|
#-------------------------------------------------
|
||||||
|
sub fixCSTemplate {
|
||||||
|
print "\tFixing CS Search template.\n" unless ($quiet);
|
||||||
|
my $asset = WebGUI::Asset->newByDynamicClass("PBtmpl0000000000000031");
|
||||||
|
my $template = $asset->get("template");
|
||||||
|
$template =~ s/<tmpl_var date>/<tmpl_var dateSubmitted.human>/ixsg;
|
||||||
|
$template =~ s/<tmpl_var time>/<tmpl_var timeSubmitted.human>/ixsg;
|
||||||
|
$asset->update({template=>$template});
|
||||||
|
$asset->commit;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
#-------------------------------------------------
|
||||||
|
sub fixSpelling {
|
||||||
|
print "\tFixing a few spelling problems.\n" unless ($quiet);
|
||||||
|
my $asset = WebGUI::Asset->newByDynamicClass("PBtmplCP00000000000001");
|
||||||
|
$asset->update({url=>"default_product_template"});
|
||||||
|
$asset->commit;
|
||||||
|
$asset = WebGUI::Asset->newByDynamicClass("PBtmpl0000000000000134");
|
||||||
|
my $template = $asset->get("template");
|
||||||
|
$template =~ s/spesify/specify/ixsg;
|
||||||
|
$asset->update({template=>$template});
|
||||||
|
$asset->commit;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -69,7 +69,8 @@ sub getPackageList {
|
||||||
assetData.title desc
|
assetData.title desc
|
||||||
");
|
");
|
||||||
while (my ($id, $date, $class) = $sth->array) {
|
while (my ($id, $date, $class) = $sth->array) {
|
||||||
push(@assets, WebGUI::Asset->new($id,$class,$date));
|
my $asset = WebGUI::Asset->new($id,$class);
|
||||||
|
push(@assets, $asset) if ($asset->get("isPackage"));
|
||||||
}
|
}
|
||||||
$sth->finish;
|
$sth->finish;
|
||||||
return \@assets;
|
return \@assets;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue