code style fix
CI / testsuite (mysql, 8.2, ) (push) Successful in 4m19s
CI / testsuite (pgsql, 8.2, ) (push) Successful in 5m31s
CI / testsuite (pgsql, 8.5, ) (push) Successful in 2m39s
CI / testsuite (sqlite, 8.2, ) (push) Successful in 4m22s
CI / testsuite (sqlite, 8.2, prefer-lowest) (push) Successful in 3m44s
CI / testsuite (sqlite, 8.5, ) (push) Successful in 11m36s
CI / Coding Standard & Static Analysis (push) Successful in 3m26s
CI / testsuite (mysql, 8.5, ) (push) Successful in 5m54s

This commit is contained in:
bs
2026-08-21 20:24:16 -07:00
parent 8a396fa8c7
commit daf6998a8b
2 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -132,9 +132,9 @@ class CartItemsController extends AppController {
$this->request->allowMethod(['post', 'delete']);
$identity = $this->getRequest()->getAttribute('identity');
$cartItem = $this->CartItems->get($id, contain: ['Carts']);
$cartItem = $this->CartItems->get($id, contain: ['Carts']);
$this->ShoppingCart->checkIfIsOwnCart($cartItem->cart);
$this->ShoppingCart->checkIfIsOwnCart($cartItem->cart);
unset($cartItem->cart);
if ($this->CartItems->delete($cartItem)) {