Skip to content

Commit 1e33ee2

Browse files
author
Till Brehm
committed
Merge branch '3817-AddClientIdResellerToken' into 'stable-3.1'
Refs #3817 - Adds a CLIENTID token parsed only for the "Add Client" form from a Reseller Makes the CLIENTID token available in the add/edit reseller limit tab See merge request !307
2 parents 9e1a303 + a3ce7da commit 1e33ee2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

interface/web/client/client_edit.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ function onShowEnd() {
206206
if($reseller['customer_no_template'] != '') {
207207
//* Set customer no default
208208
$customer_no = $app->functions->intval($reseller['customer_no_start']+$reseller['customer_no_counter']);
209-
$customer_no_string = str_replace('[CUSTOMER_NO]',$customer_no,$reseller['customer_no_template']);
209+
$customer_no_string = str_replace(array('[CUSTOMER_NO]','[CLIENTID]'),array($customer_no, $reseller['client_id']),$reseller['customer_no_template']);
210210
$app->tpl->setVar('customer_no',$customer_no_string);
211211
}
212212
}

0 commit comments

Comments
 (0)