Commit 2e91abdd82d89a5da10bc2a92f3cd87cf98e499c
1 parent
a454a918
Import browser beta v0.1
Showing
1 changed file
with
3 additions
and
1 deletions
Show diff stats
common/modules/language/behaviors/LanguageBehavior.php
@@ -237,7 +237,7 @@ | @@ -237,7 +237,7 @@ | ||
237 | $model_langs = $this->model_langs; | 237 | $model_langs = $this->model_langs; |
238 | foreach($model_langs as $model_lang) { | 238 | foreach($model_langs as $model_lang) { |
239 | if(!$model_lang->save(false)) { | 239 | if(!$model_lang->save(false)) { |
240 | -// $success = false; | 240 | + $success = false; |
241 | } | 241 | } |
242 | } | 242 | } |
243 | return $success; | 243 | return $success; |
@@ -251,6 +251,7 @@ | @@ -251,6 +251,7 @@ | ||
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 | ||
256 | public function afterSave($event) | 257 | public function afterSave($event) |
@@ -274,6 +275,7 @@ | @@ -274,6 +275,7 @@ | ||
274 | if($owner->hasAttribute('remote_id') && empty($owner->remote_id)) { | 275 | if($owner->hasAttribute('remote_id') && empty($owner->remote_id)) { |
275 | $owner->remote_id = (int) $owner->primaryKey; | 276 | $owner->remote_id = (int) $owner->primaryKey; |
276 | } | 277 | } |
278 | + | ||
277 | } | 279 | } |
278 | 280 | ||
279 | /** | 281 | /** |