small orm bug fix

This commit is contained in:
Harry G. Coin 2016-04-25 21:12:39 -05:00
parent aaf6bb8f96
commit 1497c7cb7e
1 changed files with 2 additions and 2 deletions

View File

@ -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)) {