Преглед изворни кода

Update orm.php

Reset the parent_key_exists to default of false.
FusionPBX пре 9 година
родитељ
комит
5a6809b00e
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) {