fixed: Bad message if database link for SQL Report doesn't exist
This commit is contained in:
parent
5bc3ebfd43
commit
ee59ef42e9
2 changed files with 7 additions and 3 deletions
|
|
@ -16,6 +16,7 @@
|
||||||
- fixed: Able to cut or trash system assets
|
- fixed: Able to cut or trash system assets
|
||||||
- fixed: Can't purge uncommitted assets if not using its version tag
|
- fixed: Can't purge uncommitted assets if not using its version tag
|
||||||
- fixed: DataForm will create fields with duplicate names but doesn't use them separately
|
- fixed: DataForm will create fields with duplicate names but doesn't use them separately
|
||||||
|
- fixed: Bad message if database link for SQL Report doesn't exist
|
||||||
|
|
||||||
7.5.7
|
7.5.7
|
||||||
- fixed: HttpProxy mixes original site's content encoding with WebGUI's
|
- fixed: HttpProxy mixes original site's content encoding with WebGUI's
|
||||||
|
|
|
||||||
|
|
@ -591,9 +591,12 @@ sub _processQuery {
|
||||||
my $i18n = WebGUI::International->new($self->session,"Asset_SQLReport");
|
my $i18n = WebGUI::International->new($self->session,"Asset_SQLReport");
|
||||||
push(@{$self->{_debug_loop}},{'debug.output'=>$i18n->get(17).$query});
|
push(@{$self->{_debug_loop}},{'debug.output'=>$i18n->get(17).$query});
|
||||||
push(@{$self->{_debug_loop}},{'debug.output'=>$i18n->get('debug placeholder parameters').join(",",@$placeholderParams)});
|
push(@{$self->{_debug_loop}},{'debug.output'=>$i18n->get('debug placeholder parameters').join(",",@$placeholderParams)});
|
||||||
my $dbLink = WebGUI::DatabaseLink->new($self->session,$self->{_query}{$nr}{databaseLinkId})
|
my $dbLink = WebGUI::DatabaseLink->new($self->session,$self->{_query}{$nr}{databaseLinkId});
|
||||||
|| return $self->session->errorHandler->error("Could not find database link '".$self->{_query}{$nr}{databaseLinkId}."'. Has it been created?");
|
if (!$dbLink) {
|
||||||
|
$self->session->errorHandler->error("Could not find database link '".$self->{_query}{$nr}{databaseLinkId}."'. Has it been created?");
|
||||||
|
push @{$self->{_debug_loop}}, { 'debug.output' => 'Could not find database link'};
|
||||||
|
return \%var;
|
||||||
|
}
|
||||||
my $dbh = $dbLink->db;
|
my $dbh = $dbLink->db;
|
||||||
if (defined $dbh) {
|
if (defined $dbh) {
|
||||||
if ($dbLink->queryIsAllowed($query)) {
|
if ($dbLink->queryIsAllowed($query)) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue