small fixes
This commit is contained in:
@@ -92,18 +92,6 @@ class DiscountController extends Controller
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Deletes an existing Discount model.
|
||||
* If deletion is successful, the browser will be redirected to the 'index' page.
|
||||
* @param integer $id
|
||||
* @return mixed
|
||||
*/
|
||||
public function actionDelete($id)
|
||||
{
|
||||
$this->findModel($id)->delete();
|
||||
|
||||
return $this->redirect(['index']);
|
||||
}
|
||||
|
||||
/**
|
||||
* Finds the Discount model based on its primary key value.
|
||||
|
||||
@@ -62,7 +62,7 @@ class WarehouseController extends Controller
|
||||
public function actionCreate()
|
||||
{
|
||||
$model = new Warehouse();
|
||||
|
||||
$model->status = Warehouse::STATUS_ACTIVE;
|
||||
if ($model->load(Yii::$app->request->post()) && $model->save()) {
|
||||
return $this->redirect(['view', 'id' => $model->id_warehouse]);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user