From d60821b17eea162f11f3691d822b3c6f701cbd89 Mon Sep 17 00:00:00 2001 From: yarik Date: Wed, 12 Oct 2016 15:17:16 +0300 Subject: [PATCH] Import browser beta v0.1 --- common/modules/language/behaviors/LanguageBehavior.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/common/modules/language/behaviors/LanguageBehavior.php b/common/modules/language/behaviors/LanguageBehavior.php index 5391ca8..d2cfed5 100755 --- a/common/modules/language/behaviors/LanguageBehavior.php +++ b/common/modules/language/behaviors/LanguageBehavior.php @@ -250,7 +250,6 @@ */ $owner = $this->owner; $db = $owner::getDb(); - $this->_transaction_status = false; $this->_transaction = $db->beginTransaction(); } @@ -267,6 +266,7 @@ $this->_transaction->commit(); $this->_transaction_status = true; } else { + var_dump($owner); die(); $this->_transaction->rollBack(); $this->_transaction_status = false; } @@ -274,7 +274,6 @@ $this->_transaction->commit(); $this->_transaction_status = true; } - unset($this->_transaction); if($owner->hasAttribute('remote_id') && empty($owner->remote_id)) { $owner->remote_id = (int) $owner->primaryKey(); } -- libgit2 0.21.4