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