Nick Andriopoulos
2016-04-06 a3ce7daa565942496ca4d7e566be4ff6dafc0711
Refs #3817 - Adds a CLIENTID token parsed only for the "Add Client" form from a Reseller
1 files modified
2 ■■■ changed files
interface/web/client/client_edit.php 2 ●●● patch | view | raw | blame | history
interface/web/client/client_edit.php
@@ -206,7 +206,7 @@
                if($reseller['customer_no_template'] != '') {
                    //* Set customer no default
                    $customer_no = $app->functions->intval($reseller['customer_no_start']+$reseller['customer_no_counter']);
                    $customer_no_string = str_replace('[CUSTOMER_NO]',$customer_no,$reseller['customer_no_template']);
                    $customer_no_string = str_replace(array('[CUSTOMER_NO]','[CLIENTID]'),array($customer_no, $reseller['client_id']),$reseller['customer_no_template']);
                    $app->tpl->setVar('customer_no',$customer_no_string);
                }
            }