Commit e294f9d174941d388eebf84ada532dc39903c224

Authored by Yarik
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 265 if($this->linkLangs() && $this->saveLangs()) {
266 266 $this->_transaction->commit();
267 267 $this->_transaction_status = true;
  268 + $owner->setIsNewRecord(false);
268 269 } else {
269 270 $this->_transaction->rollBack();
270 271 $this->_transaction_status = false;
... ... @@ -272,6 +273,7 @@
272 273 } else {
273 274 $this->_transaction->commit();
274 275 $this->_transaction_status = true;
  276 + $owner->setIsNewRecord(false);
275 277 }
276 278 if($owner->hasAttribute('remote_id') && empty($owner->remote_id)) {
277 279 $owner->remote_id = (int) $owner->primaryKey();
... ...