浏览代码

Update orm.php

Reset the parent_key_exists to default of false.
FusionPBX 9 年之前
父节点
当前提交
5ec5abaedc
共有 1 个文件被更改,包括 1 次插入0 次删除
  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) {