Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
noumo committed May 17, 2015
1 parent 1f61a94 commit 17cb4f7
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions components/CategoryController.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,11 @@
namespace yii\easyii\components;

use Yii;
use yii\db\ActiveRecord;
use yii\easyii\behaviors\SortableModel;
use yii\widgets\ActiveForm;
use yii\web\UploadedFile;

use yii\easyii\helpers\Image;


class CategoryController extends Controller
{
public $categoryClass;
Expand Down Expand Up @@ -137,7 +134,7 @@ public function actionDelete($id)
$children = $model->children()->all();
$model->deleteWithChildren();
foreach($children as $child) {
$child->trigger(ActiveRecord::EVENT_AFTER_DELETE);
$child->afterDelete();
}
} else {
$this->error = Yii::t('easyii', 'Not found');
Expand Down

0 comments on commit 17cb4f7

Please sign in to comment.