Index: /branches/rel_ag_9_4_5/webui/proxy/new/incVirtual/siteConfig/aaa/class.cliWrap_vAAAMSGraphAPI.php
===================================================================
--- /branches/rel_ag_9_4_5/webui/proxy/new/incVirtual/siteConfig/aaa/class.cliWrap_vAAAMSGraphAPI.php	(revision 20381)
+++ /branches/rel_ag_9_4_5/webui/proxy/new/incVirtual/siteConfig/aaa/class.cliWrap_vAAAMSGraphAPI.php	(working copy)
@@ -91,22 +91,22 @@
         while (list($temp_txt_key, $temp_txt_data) = each($temp_arr_actionStr)) {
             switch($temp_txt_data) {
                 case ($this->classId . '_gSAMLGraphAPIParamSaveChange'):
-                    if (empty($_POST[$this->classId . '_vs_aaa_saml_graph_api_param_tenant_id'])) {
-                        $this->jsOnLoadEnd .= 'g_errStr += "' . language::translate('valid_range_not_empty') . '";';
-                        break;
+                    $tenant_id = "";
+                    $client_id = "";
+                    $client_secret = "";
+                    if (!empty($_POST[$this->classId . '_vs_aaa_saml_graph_api_param_tenant_id'])) {
+                        $tenant_id = $_POST[$this->classId . '_vs_aaa_saml_graph_api_param_tenant_id'];
                     }
-                    if (empty($_POST[$this->classId . '_vs_aaa_saml_graph_api_param_client_id'])) {
-                        $this->jsOnLoadEnd .= 'g_errStr += "' . language::translate('valid_range_not_empty') . '";';
-                        break;
+                    if (!empty($_POST[$this->classId . '_vs_aaa_saml_graph_api_param_client_id'])) {
+                        $client_id = $_POST[$this->classId . '_vs_aaa_saml_graph_api_param_client_id'];
                     }
-                    if (empty($_POST[$this->classId . '_vs_aaa_saml_graph_api_param_client_secret'])) {
-                        $this->jsOnLoadEnd .= 'g_errStr += "' . language::translate('valid_range_not_empty') . '";';
-                        break;
+                    if (!empty($_POST[$this->classId . '_vs_aaa_saml_graph_api_param_client_secret'])) {
+                        $client_secret = $_POST[$this->classId . '_vs_aaa_saml_graph_api_param_client_secret'];
                     }
                     $config = array(
-                        'tenant_id' => $_POST[$this->classId . '_vs_aaa_saml_graph_api_param_tenant_id'],
-                        'client_id' => $_POST[$this->classId . '_vs_aaa_saml_graph_api_param_client_id'],
-                        'client_secret' => $_POST[$this->classId . '_vs_aaa_saml_graph_api_param_client_secret'],
+                        'tenant_id' => $tenant_id,
+                        'client_id' => $client_id,
+                        'client_secret' => $client_secret,
                     );
                     $content = json_encode($config);
                     $temp_out_clicmd_showInfo = cli::exec_direct('show info');
