Commit 18d6bf692d23829825a3238380780941321eedab
1 parent
7c4bd867
Import browser beta v0.1
Showing
2 changed files
with
1 additions
and
2 deletions
Show diff stats
common/modules/language/behaviors/LanguageBehavior.php
@@ -237,7 +237,7 @@ | @@ -237,7 +237,7 @@ | ||
237 | $success = true; | 237 | $success = true; |
238 | $model_langs = $this->model_langs; | 238 | $model_langs = $this->model_langs; |
239 | foreach($model_langs as $model_lang) { | 239 | foreach($model_langs as $model_lang) { |
240 | - if($model_lang->save(false) === false) { | 240 | + if($model_lang->save() === false) { |
241 | $success = false; | 241 | $success = false; |
242 | } | 242 | } |
243 | } | 243 | } |
common/modules/product/models/Product.php
@@ -349,7 +349,6 @@ | @@ -349,7 +349,6 @@ | ||
349 | { | 349 | { |
350 | parent::afterSave($insert, $changedAttributes); | 350 | parent::afterSave($insert, $changedAttributes); |
351 | 351 | ||
352 | - | ||
353 | if(!empty($this->categories)){ | 352 | if(!empty($this->categories)){ |
354 | $categories = Category::findAll($this->categories); | 353 | $categories = Category::findAll($this->categories); |
355 | $this->unlinkAll('categories', true); | 354 | $this->unlinkAll('categories', true); |