Browse Source

Update orm.php

Reset the parent_key_exists to default of false.
FusionPBX 9 năm trước cách đây
mục cha
commit
5ec5abaedc
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      resources/classes/orm.php

+ 1 - 0
resources/classes/orm.php

@@ -645,6 +645,7 @@
 													if (permission_exists($child_name.'_add')) {
 														//determine if child or parent key exists
 														$child_key_name = $this->singular($child_name).'_uuid';
+														$parent_key_exists = false;
 														$child_key_exists = false;
 														foreach ($row as $k => $v) {
 															if ($k == $parent_key_name) {