fix

parent b12cf780
......@@ -87,7 +87,6 @@ class PostAdminController extends AdminController
public function actionCreate()
{
$model = new Post();
$model->setScenario('manual');
if (Yii::$app->request->isPost)
{
$model->attributes = Yii::$app->request->post('Post');
......@@ -124,7 +123,6 @@ class PostAdminController extends AdminController
public function actionUpdate($id)
{
$model = $this->findModel($id);
$model->setScenario('manual');
if (Yii::$app->request->isPost)
{
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment