From 0fb9850d07052eebfbb41c70214d23ca4df46ce8 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Thu, 16 Mar 2017 22:20:11 -0600 Subject: [PATCH] Update database.php --- resources/classes/database.php | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/resources/classes/database.php b/resources/classes/database.php index 8f9ae7a5fa..6cdd3cf693 100644 --- a/resources/classes/database.php +++ b/resources/classes/database.php @@ -17,7 +17,7 @@ The Initial Developer of the Original Code is Mark J Crane - Copyright (C) 2010 - 2016 + Copyright (C) 2010 - 2017 All Rights Reserved. Contributor(s): @@ -546,7 +546,7 @@ include "root.php"; $this->debug["sql"] = true; //start the atomic transaction -// $this->db->beginTransaction(); + //$this->db->beginTransaction(); //debug info //echo "
\n";
@@ -579,7 +579,6 @@ include "root.php";
 					}
 					*/
 
-//-------------------
 				//loop through the array
 					if (is_array($new_array)) {
 						foreach ($new_array as $schema_name => $schema_array) {
@@ -871,7 +870,7 @@ include "root.php";
 					$this->message = $message;
 
 				//commit the atomic transaction
-//					$this->db->commit();
+					//$this->db->commit();
 
 				//get the domain uuid
 					$domain_uuid = $_SESSION['domain_uuid'];
@@ -1141,7 +1140,7 @@ include "root.php";
 					//print_r($new_array);
 					//echo "
\n"; //exit; -//------------------------------------------ + //loop through the array if (is_array($new_array)) foreach ($new_array as $schema_name => $schema_array) { @@ -1359,7 +1358,7 @@ include "root.php"; //prepare the variables $child_name = $this->singular($key); $child_key_name = $child_name."_uuid"; - + //determine if the parent key exists in the child array $parent_key_exists = false; if (!isset($array[$parent_key_name])) { @@ -1478,7 +1477,7 @@ include "root.php"; if ($action == "add") { if (permission_exists($child_name.'_add')) { //determine if child or parent key exists - $child_key_name = $this->singular($child_name).'_uuid'; + $child_key_name = $child_name.'_uuid'; $parent_key_exists = false; $child_key_exists = false; if (is_array($row)) { @@ -1599,7 +1598,7 @@ include "root.php"; $this->message = $message; //commit the atomic transaction -// $this->db->commit(); + //$this->db->commit(); //get the domain uuid $domain_uuid = $_SESSION['domain_uuid'];