From e294f9d174941d388eebf84ada532dc39903c224 Mon Sep 17 00:00:00 2001 From: yarik Date: Wed, 12 Oct 2016 15:05:54 +0300 Subject: [PATCH] Import browser beta v0.1 --- common/modules/language/behaviors/LanguageBehavior.php | 2 ++ 1 file changed, 2 insertions(+), 0 deletions(-) diff --git a/common/modules/language/behaviors/LanguageBehavior.php b/common/modules/language/behaviors/LanguageBehavior.php index 335a140..bae36b8 100755 --- a/common/modules/language/behaviors/LanguageBehavior.php +++ b/common/modules/language/behaviors/LanguageBehavior.php @@ -265,6 +265,7 @@ if($this->linkLangs() && $this->saveLangs()) { $this->_transaction->commit(); $this->_transaction_status = true; + $owner->setIsNewRecord(false); } else { $this->_transaction->rollBack(); $this->_transaction_status = false; @@ -272,6 +273,7 @@ } else { $this->_transaction->commit(); $this->_transaction_status = true; + $owner->setIsNewRecord(false); } if($owner->hasAttribute('remote_id') && empty($owner->remote_id)) { $owner->remote_id = (int) $owner->primaryKey(); -- libgit2 0.21.4