View Issue Details

IDProjectCategoryView StatusLast Update
0007520OXID eShop B2B EditionB2B edition - subpublic2023-09-25 11:58
Reportermichael_keiluweit 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product Version5.0.0 
Target VersionPatch for 5.0Fixed in Version5.1.0 
Summary0007520: Approval Procedure: Maintenance Mode after Log out during Edit cart action
DescriptionUsing the back button of the browser after stopping editing a basket during an approval procedure and using the log out button causes the maintenance mode.
Steps To ReproduceInstall B2B 5.0.0 + demodata

Administration area:
- Create user A, set the account as b2b account
- Create user B, set the account as b2b account
- Add user A as chief buyer for user B (use the OXID of user A)

You have two users now:
1) user A as a chief buyer
2) user B as a buyer, affiliated to user A.

Frontend:
- Log in as user A (chief buyer), give user B permissions to buy and that he must use approval procedure:
- Click on My account
- Click on My buyers
- Click on the Eye-Button for user B
- Activate the checkboxes
-- allowed to order
-- activate approval procedure
- Hit the Save button


Open a new browser instance (recommendation: use the incognito mode)


Log in as user B (buyer)
- Add the item Kite CORE GT to the basket.
- Set cart name to foobar
- Click on the button Send to approval procedure

From this point there two paths to reproduce the issue; one is fine as the other.

Reproduce as buyer (incognito mode)
- Click on My Account
- Click on Approval Procedure
- Click on the Eye-Button for the just saved basket foobar
- Click on the button Edit cart
- Click on the button Stop edit mode
- Click on the button My account -> Log out (to be exact: the "Logout" button in the pop-up window)
- Use the back button of your browser -> Maintenance mode

chiefbuyer (incognito mode)
- Click on My Account
- Click on Approval Procedure
- Click on the Eye-Button for the just saved basket foobar
- Click on the button Edit cart
- Click on the button Stop edit mode
- Click on the button My account -> Log out (to be exact: the "Logout" button in the pop-up window)
- Use the back button of your browser -> Maintenance mode
Additional InformationOXID Logger.ERROR: OxidEsales\B2BModule\ScheduledOrders\Model\Basket::isScheduledOrderBasket(): Argument #1 ($id) must be of type string, null given, called in /var/www/oxideshop/vendor/oxid-esales/b2b-scheduled-orders-module/Controller/ApprovalDetailsController.php on line 48 ["[object] (TypeError(code: 0): OxidEsales\\B2BModule\\ScheduledOrders\\Model\\Basket::isScheduledOrderBasket(): Argument #1 ($id) must be of type string, null given, called in /var/www/oxideshop/vendor/oxid-esales/b2b-scheduled-orders-module/Controller/ApprovalDetailsController.php on line 48 at /var/www/oxideshop/vendor/oxid-esales/b2b-scheduled-orders-module/Model/Basket.php:87)\n[stacktrace]\n#0 /var/www/oxideshop/vendor/oxid-esales/b2b-scheduled-orders-module/Controller/ApprovalDetailsController.php(48): OxidEsales\\B2BModule\\ScheduledOrders\\Model\\Basket->isScheduledOrderBasket(NULL)\n#1 /var/www/oxideshop/vendor/oxid-esales/oxideshop-ce/source/Core/Controller/BaseController.php(534): OxidEsales\\B2BModule\\ScheduledOrders\\Controller\\ApprovalDetailsController->b2bCompleteEditModeAction()\n#2 /var/www/oxideshop/vendor/oxid-esales/oxideshop-ee/Core/Controller/BaseController.php(64): OxidEsales\\EshopCommunity\\Core\\Controller\\BaseController->executeFunction('b2bCompleteEdit...')\n#3 /var/www/oxideshop/vendor/oxid-esales/oxideshop-ce/source/Core/ShopControl.php(347): OxidEsales\\EshopEnterprise\\Core\\Controller\\BaseController->executeFunction('b2bCompleteEdit...')\n#4 /var/www/oxideshop/vendor/oxid-esales/oxideshop-ce/source/Core/ShopControl.php(280): OxidEsales\\EshopCommunity\\Core\\ShopControl->executeAction(Object(OxidEsales\\B2BModule\\BulkOrders\\Controller\\ApprovalProcedureDetailsController), 'b2bCompleteEdit...')\n#5 /var/www/oxideshop/vendor/oxid-esales/oxideshop-ce/source/Core/ShopControl.php(142): OxidEsales\\EshopCommunity\\Core\\ShopControl->_process('OxidEsales\\\\B2BM...', 'b2bCompleteEdit...', NULL, NULL)\n#6 /var/www/oxideshop/vendor/oxid-esales/oxideshop-ce/source/Core/Oxid.php(27): OxidEsales\\EshopCommunity\\Core\\ShopControl->start()\n#7 /var/www/oxideshop/source/index.php(16): OxidEsales\\EshopCommunity\\Core\\Oxid::run()\n#8 {main}\n"] []
TagsNo tags attached.

Activities

QA

2023-08-25 15:52

administrator   ~0015497

Dear MK,

thank you.
I could reproduce this problem.

Best Regards QA -SG-