Commit d60821b17eea162f11f3691d822b3c6f701cbd89
1 parent
ffedcae5
Import browser beta v0.1
Showing
1 changed file
with
1 additions
and
2 deletions
Show diff stats
common/modules/language/behaviors/LanguageBehavior.php
... | ... | @@ -250,7 +250,6 @@ |
250 | 250 | */ |
251 | 251 | $owner = $this->owner; |
252 | 252 | $db = $owner::getDb(); |
253 | - $this->_transaction_status = false; | |
254 | 253 | $this->_transaction = $db->beginTransaction(); |
255 | 254 | |
256 | 255 | } |
... | ... | @@ -267,6 +266,7 @@ |
267 | 266 | $this->_transaction->commit(); |
268 | 267 | $this->_transaction_status = true; |
269 | 268 | } else { |
269 | + var_dump($owner); die(); | |
270 | 270 | $this->_transaction->rollBack(); |
271 | 271 | $this->_transaction_status = false; |
272 | 272 | } |
... | ... | @@ -274,7 +274,6 @@ |
274 | 274 | $this->_transaction->commit(); |
275 | 275 | $this->_transaction_status = true; |
276 | 276 | } |
277 | - unset($this->_transaction); | |
278 | 277 | if($owner->hasAttribute('remote_id') && empty($owner->remote_id)) { |
279 | 278 | $owner->remote_id = (int) $owner->primaryKey(); |
280 | 279 | } | ... | ... |