[rt-users] small bug in SearchResults-XLS
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
Re: [rt-users] small bug in SearchResults-XLS
On Wed, Dec 03, 2008 at 10:18:19AM +0100, Benjamin Weser wrote: 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 % #} Yep, cmp_version exists only in 3.8.x. Maybe you can have a look at this. Well, latest version was updated to fit 3.8.x without concern about 3.6 :/. For 3.6.x you should use 0.02. RT::Extension::SearchResults::XLS follow the evolution of Results.tsv code and so I cannot be sure that it is backward compatible between major versions. I promise to add information on RT version dependency in next uploads ;) ___ 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