
1st January 2013, 20:15
|
|
Senior Member
|
|
Join Date: Feb 2007
Posts: 225
Thanks: 47
Thanked 9 Times in 6 Posts
|
|
Reseller create client
Hi,
I have create a script for adding a client. i define the value parent_client_id with the reseller id. but when i check in the database the value is 1 not the reseller id. Is allways 1
I have open a task in the bugtracker
http://bugtracker.ispconfig.org/inde...s&task_id=2601
Tanks
|

1st January 2013, 20:17
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,903
Thanks: 693
Thanked 4,196 Times in 3,212 Posts
|
|
I've closed the bugtracker request as its a duplicate to an existing request and has already been fixed in 3.0.5 RC1.
|

1st January 2013, 20:24
|
|
Senior Member
|
|
Join Date: Feb 2007
Posts: 225
Thanks: 47
Thanked 9 Times in 6 Posts
|
|
Thanks,
I have not find the other ticket
Best regards
|

2nd January 2013, 10:54
|
|
Senior Member
|
|
Join Date: Feb 2007
Posts: 225
Thanks: 47
Thanked 9 Times in 6 Posts
|
|
Hi,
I have send a request fo reopen the ticket 2314
I have create a user. In the reseller, the user display. But when i had a mail domain i have a error. I have checked and in the database, the field parent_id is false (always 1). If i change to the reseller id, it's OK
Best regards
|

2nd January 2013, 11:32
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,903
Thanks: 693
Thanked 4,196 Times in 3,212 Posts
|
|
Quote:
|
I have create a user. In the reseller, the user display. But when i had a mail domain i have a error. I have checked and in the database, the field parent_id is false (always 1). If i change to the reseller id, it's OK
|
When you create a client which is assigned to a reseller, you have to set the value of the field parent_id to the ID of the reseller in the params array.
|

2nd January 2013, 17:10
|
|
Senior Member
|
|
Join Date: Feb 2007
Posts: 225
Thanks: 47
Thanked 9 Times in 6 Posts
|
|
Yes, i have set the parent_id value. But in the database the value is 1
|

3rd January 2013, 10:01
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,903
Thanks: 693
Thanked 4,196 Times in 3,212 Posts
|
|
It should work when you set the ID correctly in these 2 places. Tested it before the RC got released and I was able to create clients with correct ID's for resellers.
$reseller_id = 2;
$params(
.....
'parent_client_id' => 2,
.....
);
$affected_rows = $client->client_add($session_id, $reseller_id, $params);
|

20th January 2013, 17:00
|
|
Senior Member
|
|
Join Date: Feb 2007
Posts: 225
Thanks: 47
Thanked 9 Times in 6 Posts
|
|
Hi,
Ok, the $reseller_id variable is not present in the exemple (version 3.0.4.6)
many thanks
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT +2. The time now is 07:04.
|
Recent comments
1 day 1 hour ago
1 day 7 hours ago
1 day 11 hours ago
1 day 13 hours ago
1 day 21 hours ago
2 days 7 hours ago
2 days 8 hours ago
2 days 11 hours ago
2 days 16 hours ago
2 days 16 hours ago