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 | 237 | $model_langs = $this->model_langs; |
| 238 | 238 | foreach($model_langs as $model_lang) { |
| 239 | 239 | if(!$model_lang->save(false)) { |
| 240 | -// $success = false; | |
| 240 | + $success = false; | |
| 241 | 241 | } |
| 242 | 242 | } |
| 243 | 243 | return $success; |
| ... | ... | @@ -251,6 +251,7 @@ |
| 251 | 251 | $owner = $this->owner; |
| 252 | 252 | $db = $owner::getDb(); |
| 253 | 253 | $this->_transaction = $db->beginTransaction(); |
| 254 | + | |
| 254 | 255 | } |
| 255 | 256 | |
| 256 | 257 | public function afterSave($event) |
| ... | ... | @@ -274,6 +275,7 @@ |
| 274 | 275 | if($owner->hasAttribute('remote_id') && empty($owner->remote_id)) { |
| 275 | 276 | $owner->remote_id = (int) $owner->primaryKey; |
| 276 | 277 | } |
| 278 | + | |
| 277 | 279 | } |
| 278 | 280 | |
| 279 | 281 | /** | ... | ... |