From 9cb0517e43eb90bdd3a1a514eb6c7d2debcea620 Mon Sep 17 00:00:00 2001 From: Roland Schneider Date: Wed, 14 Sep 2016 19:03:53 +0200 Subject: [PATCH] Fix inventory-item/update buttons save, save/next --- backend/controllers/InventoryItemController.php | 7 +------ changelog.txt | 2 ++ common/config/params.php | 2 +- console/controllers/InventoryConsoleController.php | 4 ---- 4 files changed, 4 insertions(+), 11 deletions(-) diff --git a/backend/controllers/InventoryItemController.php b/backend/controllers/InventoryItemController.php index d6dfb4d..c50cbee 100644 --- a/backend/controllers/InventoryItemController.php +++ b/backend/controllers/InventoryItemController.php @@ -208,14 +208,9 @@ class InventoryItemController extends Controller -// if (isset($prev)) { -// return $this->redirect($prev); -// } else { -// return $this->redirect(['index', 'id' => $inventory->id_inventory]); -// } $next = InventoryItem::findNextItemAlphabetical($model->id_inventory_item); - if ( isset($next)){ + if ( isset($_POST['_next']) && isset($next)){ return $this->redirect(['inventory-item/update', 'id' => $next]); }else{ return $this->redirect(['index', 'id' => $inventory->id_inventory]); diff --git a/changelog.txt b/changelog.txt index acdba29..c397bce 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,3 +1,5 @@ +-0.0.88 + - fix inventory-time edit save/next and save button targets -0.0.87 - add console command fix ticket installment request target time -0.0.86 diff --git a/common/config/params.php b/common/config/params.php index 6f9c337..dca07e7 100644 --- a/common/config/params.php +++ b/common/config/params.php @@ -5,7 +5,7 @@ return [ 'supportEmail' => 'rocho02@gmail.com', 'infoEmail' => 'info@rocho-net.hu', 'user.passwordResetTokenExpire' => 3600, - 'version' => 'v0.0.87', + 'version' => 'v0.0.88', 'company' => 'movar',//gyor 'company_name' => "Freimann Kft.", 'product_visiblity' => 'account',// on reception which products to display. account or global diff --git a/console/controllers/InventoryConsoleController.php b/console/controllers/InventoryConsoleController.php index 9944594..6329852 100644 --- a/console/controllers/InventoryConsoleController.php +++ b/console/controllers/InventoryConsoleController.php @@ -3,7 +3,6 @@ namespace console\controllers; use common\models\Inventory; use common\models\InventoryItem; -use common\models\Product; use common\models\Transfer; use yii\console\Controller; use yii\db\Expression; @@ -61,11 +60,8 @@ class InventoryConsoleController extends Controller{ $item->save(); - - } - }