Commit d17feca7c433ba478e18da29a38c4ed98a49e65f
1 parent
0c9a37fc
Import browser beta v0.1
Showing
1 changed file
with
4 additions
and
4 deletions
Show diff stats
common/modules/language/behaviors/LanguageBehavior.php
| @@ -250,7 +250,7 @@ | @@ -250,7 +250,7 @@ | ||
| 250 | */ | 250 | */ |
| 251 | $owner = $this->owner; | 251 | $owner = $this->owner; |
| 252 | $db = $owner::getDb(); | 252 | $db = $owner::getDb(); |
| 253 | - $this->_transaction = $db->beginTransaction(); | 253 | +// $this->_transaction = $db->beginTransaction(); |
| 254 | } | 254 | } |
| 255 | 255 | ||
| 256 | public function afterSave($event) | 256 | public function afterSave($event) |
| @@ -261,14 +261,14 @@ | @@ -261,14 +261,14 @@ | ||
| 261 | $owner = $this->owner; | 261 | $owner = $this->owner; |
| 262 | if(!empty( $this->model_langs )) { | 262 | if(!empty( $this->model_langs )) { |
| 263 | if($this->linkLangs() && $this->saveLangs()) { | 263 | if($this->linkLangs() && $this->saveLangs()) { |
| 264 | - $this->_transaction->commit(); | 264 | +// $this->_transaction->commit(); |
| 265 | $this->_transaction_status = true; | 265 | $this->_transaction_status = true; |
| 266 | } else { | 266 | } else { |
| 267 | - $this->_transaction->rollBack(); | 267 | +// $this->_transaction->rollBack(); |
| 268 | $this->_transaction_status = false; | 268 | $this->_transaction_status = false; |
| 269 | } | 269 | } |
| 270 | } else { | 270 | } else { |
| 271 | - $this->_transaction->commit(); | 271 | +// $this->_transaction->commit(); |
| 272 | $this->_transaction_status = true; | 272 | $this->_transaction_status = true; |
| 273 | } | 273 | } |
| 274 | if($owner->hasAttribute('remote_id') && empty($owner->remote_id)) { | 274 | if($owner->hasAttribute('remote_id') && empty($owner->remote_id)) { |