From 3ba56480d4e7ba4f9fffa2062dbca5cb41a5bb01 Mon Sep 17 00:00:00 2001
From: Till Brehm <tbrehm@ispconfig.org>
Date: Fri, 03 Jan 2014 09:26:34 -0500
Subject: [PATCH] Implemented: FS#2837 - New functions for the API
---
interface/web/client/client_edit.php | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/interface/web/client/client_edit.php b/interface/web/client/client_edit.php
index b98a368..b3c0ac5 100644
--- a/interface/web/client/client_edit.php
+++ b/interface/web/client/client_edit.php
@@ -172,6 +172,7 @@
$app->tpl->setVar('template_additional_list', $text);
$app->tpl->setVar('app_module', 'client');
+
//* Set the 'customer no' default value
if($this->id == 0) {
@@ -207,11 +208,10 @@
//* save new counter value
$customer_no_counter = $app->functions->intval($reseller['customer_no_counter']+1);
$app->db->query("UPDATE client SET customer_no_counter = $customer_no_counter WHERE client_id = ".$app->functions->intval($reseller['client_id']));
- echo "UPDATE client SET customer_no_counter = $customer_no_counter WHERE client_id = ".$app->functions->intval($reseller['client_id']);
}
}
}
-
+
parent::onShowEnd();
}
--
Gitblit v1.9.1