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,7 +250,6 @@ | ||
250 | */ | 250 | */ |
251 | $owner = $this->owner; | 251 | $owner = $this->owner; |
252 | $db = $owner::getDb(); | 252 | $db = $owner::getDb(); |
253 | - $this->_transaction_status = false; | ||
254 | $this->_transaction = $db->beginTransaction(); | 253 | $this->_transaction = $db->beginTransaction(); |
255 | 254 | ||
256 | } | 255 | } |
@@ -267,6 +266,7 @@ | @@ -267,6 +266,7 @@ | ||
267 | $this->_transaction->commit(); | 266 | $this->_transaction->commit(); |
268 | $this->_transaction_status = true; | 267 | $this->_transaction_status = true; |
269 | } else { | 268 | } else { |
269 | + var_dump($owner); die(); | ||
270 | $this->_transaction->rollBack(); | 270 | $this->_transaction->rollBack(); |
271 | $this->_transaction_status = false; | 271 | $this->_transaction_status = false; |
272 | } | 272 | } |
@@ -274,7 +274,6 @@ | @@ -274,7 +274,6 @@ | ||
274 | $this->_transaction->commit(); | 274 | $this->_transaction->commit(); |
275 | $this->_transaction_status = true; | 275 | $this->_transaction_status = true; |
276 | } | 276 | } |
277 | - unset($this->_transaction); | ||
278 | if($owner->hasAttribute('remote_id') && empty($owner->remote_id)) { | 277 | if($owner->hasAttribute('remote_id') && empty($owner->remote_id)) { |
279 | $owner->remote_id = (int) $owner->primaryKey(); | 278 | $owner->remote_id = (int) $owner->primaryKey(); |
280 | } | 279 | } |