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 | 250 | */ |
| 251 | 251 | $owner = $this->owner; |
| 252 | 252 | $db = $owner::getDb(); |
| 253 | - $this->_transaction = $db->beginTransaction(); | |
| 253 | +// $this->_transaction = $db->beginTransaction(); | |
| 254 | 254 | } |
| 255 | 255 | |
| 256 | 256 | public function afterSave($event) |
| ... | ... | @@ -261,14 +261,14 @@ |
| 261 | 261 | $owner = $this->owner; |
| 262 | 262 | if(!empty( $this->model_langs )) { |
| 263 | 263 | if($this->linkLangs() && $this->saveLangs()) { |
| 264 | - $this->_transaction->commit(); | |
| 264 | +// $this->_transaction->commit(); | |
| 265 | 265 | $this->_transaction_status = true; |
| 266 | 266 | } else { |
| 267 | - $this->_transaction->rollBack(); | |
| 267 | +// $this->_transaction->rollBack(); | |
| 268 | 268 | $this->_transaction_status = false; |
| 269 | 269 | } |
| 270 | 270 | } else { |
| 271 | - $this->_transaction->commit(); | |
| 271 | +// $this->_transaction->commit(); | |
| 272 | 272 | $this->_transaction_status = true; |
| 273 | 273 | } |
| 274 | 274 | if($owner->hasAttribute('remote_id') && empty($owner->remote_id)) { | ... | ... |