[Rt-commit] [rtir] 02/04: Better error guarding in ToolResultIframe
Jesse Vincent
jesse at bestpractical.com
Thu Mar 19 02:51:02 EDT 2015
This is an automated email from the git hooks/post-receive script.
jesse pushed a commit to branch 3.4/remove_old_constituencies
in repository rtir.
commit 5f5171fe2ecaccb4e887ca263b2a8d24e072b5ac
Author: Jesse Vincent <jesse at bestpractical.com>
Date: Wed Mar 18 22:50:09 2015 -0700
Better error guarding in ToolResultIframe
---
html/RTIR/Tools/Elements/ToolResultsIframe | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/html/RTIR/Tools/Elements/ToolResultsIframe b/html/RTIR/Tools/Elements/ToolResultsIframe
index e3288d2..c8d6038 100644
--- a/html/RTIR/Tools/Elements/ToolResultsIframe
+++ b/html/RTIR/Tools/Elements/ToolResultsIframe
@@ -57,6 +57,11 @@ $ResearchTool => undef
<%init>
return unless ($ResearchTool);
my $research_tools = RT->Config->Get('RTIRIframeResearchToolConfig');
+if (!$research_tools->{$ResearchTool}->{URL}) {
+ $RT::Logger->error(
+ "Couldn't find a URL for RTIR research tool $ResearchTool. You should check your RTIRIframeResearchToolConfig");
+ return;
+}
my $url = $research_tools->{$ResearchTool}->{URL};
$url =~ s/__SearchTerm__/$q/g;
</%init>
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the rt-commit
mailing list