Correct the original data array

The original data array old_array, the value should be null for adding records with an insert
This commit is contained in:
FusionPBX
2025-08-10 01:44:38 -06:00
committed by GitHub
parent 835e60d967
commit 62c7d6a4c4

View File

@@ -2326,7 +2326,7 @@
if (permission_exists(self::singular($parent_name).'_add')) {
//add to the old and new arrays
$old_array[$parent_name][] = null;
$old_array = null;
$new_array[$parent_name][] = $parent_field_array;
//prepare the insert statement
@@ -2882,7 +2882,7 @@
}
//add to the old and new arrays
$old_array[$child_name][] = null;
$old_array = null;
$new_array[$child_name][] = $row;
//build the insert