From d17feca7c433ba478e18da29a38c4ed98a49e65f Mon Sep 17 00:00:00 2001 From: yarik Date: Wed, 12 Oct 2016 13:55:48 +0300 Subject: [PATCH] Import browser beta v0.1 --- common/modules/language/behaviors/LanguageBehavior.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/common/modules/language/behaviors/LanguageBehavior.php b/common/modules/language/behaviors/LanguageBehavior.php index 6f6d1f2..5723934 100755 --- a/common/modules/language/behaviors/LanguageBehavior.php +++ b/common/modules/language/behaviors/LanguageBehavior.php @@ -250,7 +250,7 @@ */ $owner = $this->owner; $db = $owner::getDb(); - $this->_transaction = $db->beginTransaction(); +// $this->_transaction = $db->beginTransaction(); } public function afterSave($event) @@ -261,14 +261,14 @@ $owner = $this->owner; if(!empty( $this->model_langs )) { if($this->linkLangs() && $this->saveLangs()) { - $this->_transaction->commit(); +// $this->_transaction->commit(); $this->_transaction_status = true; } else { - $this->_transaction->rollBack(); +// $this->_transaction->rollBack(); $this->_transaction_status = false; } } else { - $this->_transaction->commit(); +// $this->_transaction->commit(); $this->_transaction_status = true; } if($owner->hasAttribute('remote_id') && empty($owner->remote_id)) { -- libgit2 0.21.4