fixed a bunch of bugs

This commit is contained in:
JT Smith 2005-05-23 15:02:23 +00:00
parent 3b5a7d6f52
commit fd57cbaa51
8 changed files with 25 additions and 6 deletions

View file

@ -33,7 +33,12 @@
- fix [ 1204123 ] Bug: sortby.lastreply.url
- fix [ 1203779 ] "Remove" Button in FileUploadControl not internationalized
- fix [ 1201650 ] Server-wide Cache can be viewed/cleared by an admin
- fix [ 1205128 ] typo in \lib\WebGUI\AdminConsole.pm
- Fixed a bug with macro quotes and TinyMCE.
- fix [ 1197095 ] runHourly not finishing
- Fixed a bug with the rich editor locking up when switching between tabs.
- fix [ 1187256 ] WG v6.5.6 incompatible with mod_perl v2.0.0RC5? (Koen de
Jonge)
6.6.0
@ -120,6 +125,8 @@
- fix [ 1180291 ] tinymce resets src of img incorrectly
- fix [ 1186395 ] survey: view statisics broken
- RFE 1035743, internationalize WebGUI macros.
- Redirects now process macros in the redirect URL.
- You can now tie LDAP groups to WebGUI groups.
6.5.6

View file

@ -34,7 +34,7 @@ Package to manipulate items in WebGUI's asset system. Replaces Collateral.
An asset is the basic class of content in WebGUI. This handles security, urls, and other basic information common to all content items.
A lineage is a concatenated series of sequence numbers, each six digits long, that explain an asset's position in its familiy tree. Lineage describes who the asset's anscestors are, how many ancestors the asset has in its family tree (lineage length), and the asset's position (rank) amongst its siblings. In addition, lineage provides enough information about an asset to generate a list of its siblings and descendants.
A lineage is a concatenated series of sequence numbers, each six digits long, that explain an asset's position in its familiy tree. Lineage describes who the asset's ancestors are, how many ancestors the asset has in its family tree (lineage length), and the asset's position (rank) amongst its siblings. In addition, lineage provides enough information about an asset to generate a list of its siblings and descendants.
use WebGUI::Asset;

View file

@ -17,6 +17,7 @@ package WebGUI::Asset::Redirect;
use strict;
use WebGUI::Asset;
use WebGUI::HTTP;
use WebGUI::Macro;
use WebGUI::Session;
our @ISA = qw(WebGUI::Asset);
@ -150,7 +151,7 @@ sub www_view {
if ($session{var}{adminOn}) {
return $self->getContainer->www_view;
}
WebGUI::HTTP::setRedirect($self->get("redirectUrl")) unless $self->newByUrl($self->get("redirectUrl"))->getUrl eq $self->getUrl;
WebGUI::HTTP::setRedirect(WebGUI::Macro::process($self->get("redirectUrl"))) unless $self->newByUrl($self->get("redirectUrl"))->getUrl eq $self->getUrl;
return "Redirect is self-referential";
}

View file

@ -412,6 +412,7 @@ sub getRichEditor {
mode => "specific_textareas",
theme => "advanced",
document_base_url => "/",
auto_reset_designmode => "true",
cleanup_callback => "tinyMCE_WebGUI_Cleanup",
urlconvertor_callback => "tinyMCE_WebGUI_URLConvertor",
theme_advanced_buttons1 => join(",",@toolbarRow1),

View file

@ -1432,7 +1432,7 @@ sub phone {
return text({
name=>$params->{name},
maxlength=>$maxLength,
extras=>'onKeyUp="doInputCheck(this.form.'.$params->{name}.',\'0123456789-()+ \')" '.$params->{extras},
extras=>'onkeyup="doInputCheck(this.form.'.$params->{name}.',\'0123456789-()+ \')" '.$params->{extras},
value=>$params->{value},
size=>$params->{size},
defaultValue=>$params->{defaultValue}

View file

@ -80,7 +80,12 @@ sub getHeader {
$params{"-cookie"} = $session{http}{cookie};
my $status = getStatus();
if($session{env}{MOD_PERL}) {
my $r = Apache->request;
my $r;
if ($$mod_perl::VERSION >= 1.999023) {
$r = Apache2::RequestUtil->request;
} else {
$r = Apache->request;
}
if(defined($r)) {
$r->custom_response($status, '<!-- '.$session{http}{statusDescription}.' -->' );
$r->status($status);

View file

@ -118,7 +118,12 @@ sub _setupUserInfo {
}
$session{user} = \%user;
if ($session{env}{MOD_PERL}) {
my $r = Apache->request;
my $r;
if ($$mod_perl::VERSION >= 1.999023) {
$r = Apache2::RequestUtil->request;
} else {
$r = Apache->request;
}
if(defined($r)) {
$r->user($session{user}{username});
}

View file

@ -14,7 +14,7 @@ function tinyMCE_WebGUI_URLConvertor(url, node, on_save) {
return url;
}
function tinyMCE_WebGUI_Cleanup(content) {
function tinyMCE_WebGUI_Cleanup(type,content) {
return content.replace(new RegExp("&quot;","g"),'"');
}