fix: unfuck icon deletion
This commit is contained in:
parent
917abfc03c
commit
1e7fe9aafe
|
@ -79,7 +79,7 @@ class ListController extends \yii\web\Controller
|
||||||
return $this->redirect('/list');
|
return $this->redirect('/list');
|
||||||
}
|
}
|
||||||
|
|
||||||
$param->setAttribute($type == 'normal' ? 'icon' : 'icon_gray', null);
|
$param->setAttribute($type == 'normal' ? 'icon_id' : 'icon_gray_id', null);
|
||||||
$param->save();
|
$param->save();
|
||||||
return $this->redirect('/list?ParameterSearch[id]='. $id);
|
return $this->redirect('/list?ParameterSearch[id]='. $id);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue