Disable this until it has been improved and tested more.

This commit is contained in:
FusionPBX
2020-07-10 12:55:58 -06:00
committed by GitHub
parent 7a720b84a9
commit 4514947223
+12 -12
View File
@@ -850,21 +850,21 @@ include "root.php";
} }
//get the child data //get the child data
$sql = "select * from ".$table_prefix.$child_table." "; //$sql = "select * from ".$table_prefix.$child_table." ";
$sql .= "where ".$relation['field']." = :".$relation['field']; //$sql .= "where ".$relation['field']." = :".$relation['field'];
$parameters[$relation['field']] = $row[$relation['field']]; //$parameters[$relation['field']] = $row[$relation['field']];
$results = $this->execute($sql, $parameters, 'all'); //$results = $this->execute($sql, $parameters, 'all');
unset($parameters); //unset($parameters);
if (is_array($results)) { //if (is_array($results)) {
$old_array[$parent_name][$x][$child_table] = $results; // $old_array[$parent_name][$x][$child_table] = $results;
} //}
//delete the child data //delete the child data
$sql = "delete from ".$table_prefix.$child_table." "; //$sql = "delete from ".$table_prefix.$child_table." ";
$sql .= "where ".$relation['field']." = :".$relation['field']; //$sql .= "where ".$relation['field']." = :".$relation['field'];
$parameters[$relation['field']] = $row[$relation['field']]; //$parameters[$relation['field']] = $row[$relation['field']];
//$this->execute($sql, $parameters); //$this->execute($sql, $parameters);
unset($parameters); //unset($parameters);
} }
} }
$x++; $x++;