Browse Source

small orm bug fix

Harry G. Coin 9 năm trước cách đây
mục cha
commit
75e03caab1
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      resources/classes/orm.php

+ 2 - 2
resources/classes/orm.php

@@ -286,13 +286,13 @@
 					}
 					}
 
 
 				//add a record
 				//add a record
+        				//set the message index
+					$m = 0;
 					if ($action == "add") {
 					if ($action == "add") {
 						if (permission_exists($this->singular($this->name).'_add')) {
 						if (permission_exists($this->singular($this->name).'_add')) {
 							//start the atomic transaction
 							//start the atomic transaction
 								$this->db->beginTransaction();
 								$this->db->beginTransaction();
 
 
-							//set the message index
-								$m = 0;
 
 
 							//parent data
 							//parent data
 								if (isset($this->uuid)) {
 								if (isset($this->uuid)) {