detsta import improvements, procurement changes
This commit is contained in:
@@ -13,6 +13,7 @@ use common\models\Product;
|
||||
use common\models\User;
|
||||
use common\components\Helper;
|
||||
use common\models\Account;
|
||||
use yii\helpers\Url;
|
||||
|
||||
/**
|
||||
* ProcurementController implements the CRUD actions for Procurement model.
|
||||
@@ -193,7 +194,15 @@ class ProcurementController extends \backend\controllers\BackendController
|
||||
}
|
||||
|
||||
|
||||
return $this->redirect(['view', 'id' => $model->id_procurement]);
|
||||
// return $this->redirect(['view', 'id' => $model->id_procurement]);
|
||||
$url = Url::previous("product_index");
|
||||
if ( isset($url)){
|
||||
return $this->redirect( $url );
|
||||
}else{
|
||||
return $this->redirect(['product/index']);
|
||||
}
|
||||
|
||||
// return $this->redirect(Yii::$app->request->referrer);
|
||||
} else {
|
||||
return $this->render('create_product', [
|
||||
'model' => $model,
|
||||
|
||||
Reference in New Issue
Block a user