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.


_______________________________________________
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: [EMAIL PROTECTED]


Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
Buy a copy at http://rtbook.bestpractical.com

Reply via email to