Commit e294f9d174941d388eebf84ada532dc39903c224
1 parent
a1bcd32d
Import browser beta v0.1
Showing
1 changed file
with
2 additions
and
0 deletions
Show diff stats
common/modules/language/behaviors/LanguageBehavior.php
@@ -265,6 +265,7 @@ | @@ -265,6 +265,7 @@ | ||
265 | if($this->linkLangs() && $this->saveLangs()) { | 265 | if($this->linkLangs() && $this->saveLangs()) { |
266 | $this->_transaction->commit(); | 266 | $this->_transaction->commit(); |
267 | $this->_transaction_status = true; | 267 | $this->_transaction_status = true; |
268 | + $owner->setIsNewRecord(false); | ||
268 | } else { | 269 | } else { |
269 | $this->_transaction->rollBack(); | 270 | $this->_transaction->rollBack(); |
270 | $this->_transaction_status = false; | 271 | $this->_transaction_status = false; |
@@ -272,6 +273,7 @@ | @@ -272,6 +273,7 @@ | ||
272 | } else { | 273 | } else { |
273 | $this->_transaction->commit(); | 274 | $this->_transaction->commit(); |
274 | $this->_transaction_status = true; | 275 | $this->_transaction_status = true; |
276 | + $owner->setIsNewRecord(false); | ||
275 | } | 277 | } |
276 | if($owner->hasAttribute('remote_id') && empty($owner->remote_id)) { | 278 | if($owner->hasAttribute('remote_id') && empty($owner->remote_id)) { |
277 | $owner->remote_id = (int) $owner->primaryKey(); | 279 | $owner->remote_id = (int) $owner->primaryKey(); |