Jörg Ungermann wrote:
> We have a urgent issue with search builder:
> 
> In an customized Module we used SearchBuilder.
> What is does is: In order to allow People to enter new users we auto generate 
> user Ids and use the Realname fpor display.
> 
> In RT 3.4 on Mysql the code worked just fine.

I'd expect it to fail.

> On RT 3.4 on Postgres 8.0 we had the following error:
> 
> It seems that SearchBuilder is not capable of getting 
> $users->OrderBy(FIELD=>'id');
> 
> Any ideas why this is happening?
> 
> 
> 282: 
> my $users = new RT::Users($session{'CurrentUser'});
> 
> 
> 283: 
> $users->OrderBy(FIELD=>'id');
> 
> 

You need a $users->UnLimit here.

> 284: 
> my $user = $users->Last;
> 
> 
> 285: 
> my $uid = $user->Id+1;
> 
> 
> 286: 
> #my $uid='tst45';
> 
> 
> 287: 
> 
> 
> 288: 
> my $current_tab;
> 
> 
> 289: 
> my $UserObj = new RT::User($session{'CurrentUser'});
> 
> 
> ... 
> 
> 

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
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


We're hiring! Come hack Perl for Best Practical: 
http://bestpractical.com/about/jobs.html

Reply via email to