View Single Post
  #48  
Old 17th November 2010, 22:59
teves teves is offline
Senior Member
 
Join Date: Oct 2006
Posts: 145
Thanks: 27
Thanked 10 Times in 7 Posts
Default

There seems to be an error in the latest remoting framework (beta4.2.2), or perhaps I got something wrong:
when I try the example code to retrieve the client list of a reseller, it does work as long as I use the parameter 'reseller_title'.

Code:
// Client List
$params = array ('sid' => $session_id,
       'module' => 'kunde',
       'function' => 'kunde_list',
       'params' => array( reseller_title => 'Fancy reseller name'));

But when I use the 'reseller_id' parameter:
Code:
       'params' =>array( reseller_id=> 'reseller1'));
I get a list of all clients instead of those belonging to reseller1. Bug or feature? ;-)

Thanks, Tom
Reply With Quote