[rt-users] small bug in SearchResults-XLS

Benjamin Weser weser at osp-dd.de
Wed Dec 3 04:18:19 EST 2008


Dear list, dear Emmanuel,

today I used cpan (cpan -i RT::Extension::SearchResults::XLS) to install 
SearchResults-XLS to one of our RT instances (RT v3.6.6, Apache/2.2.3, 
Perl v5.8.8 on a SUSE Linux Enterprise Server 10).

After that I got some error messages (see below my posting).
Looks like RT::Handle::cmp_version is not known in RT 3.6.6 yet. As 
small workaround it was sufficient, to comment out the condition in the 
callback:
% #if (RT::Handle::cmp_version( '3.8.1', $RT::VERSION ) > 0 ) {
<a href="<%$RT::WebPath%>/Search/Results.xls<%$QueryString%>">XLS</a>
% #}

Maybe you can have a look at this.

Best regards,
Ben


*error:*  	Undefined subroutine &RT::Handle::cmp_version called at 
/opt/rt3/share/html/Callbacks/Results-XLS/Search/Results.html/SearchActions 
line 3.
*context:*  	
*1:*  	% # Don't display this callback if our RT Version contains the 
new ResultsView
*2:*  	% # AfterTools Callback
*3:*  	% if (RT::Handle::cmp_version( '3.8.1', $RT::VERSION ) > 0 ) {
*4:*  	<a 
href="<%$RT::WebPath%>/Search/Results.xls<%$QueryString%>">XLS</a>
*5:*  	% }
*6:*  	<%ARGS>
*7:*  	$QueryString => undef
*...*  	

*code stack:*  
/opt/rt3/share/html/Callbacks/Results-XLS/Search/Results.html/SearchActions:3
/opt/rt3/share/html/Elements/Callback:85
/opt/rt3/share/html/Search/Results.html:94
/opt/rt3/share/html/Search/Build.html:783
/opt/rt3/share/html/autohandler:291


Undefined subroutine &RT::Handle::cmp_version called at /opt/rt3/share/html/Callbacks/Results-XLS/Search/Results.html/SearchActions line 3.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20081203/39cbd1d6/attachment.htm>


More information about the rt-users mailing list