workflow + compsoer stan fixes
CI / testsuite (mysql, 8.2, ) (push) Successful in 3m32s
CI / testsuite (pgsql, 8.2, ) (push) Successful in 5m39s
CI / testsuite (pgsql, 8.5, ) (push) Successful in 2m44s
CI / testsuite (mysql, 8.5, ) (push) Successful in 9m53s
CI / testsuite (sqlite, 8.2, prefer-lowest) (push) Successful in 3m34s
CI / testsuite (sqlite, 8.2, ) (push) Successful in 5m5s
CI / Coding Standard & Static Analysis (push) Failing after 3m10s
CI / testsuite (sqlite, 8.5, ) (push) Successful in 10m15s
CI / testsuite (mysql, 8.2, ) (push) Successful in 3m32s
CI / testsuite (pgsql, 8.2, ) (push) Successful in 5m39s
CI / testsuite (pgsql, 8.5, ) (push) Successful in 2m44s
CI / testsuite (mysql, 8.5, ) (push) Successful in 9m53s
CI / testsuite (sqlite, 8.2, prefer-lowest) (push) Successful in 3m34s
CI / testsuite (sqlite, 8.2, ) (push) Successful in 5m5s
CI / Coding Standard & Static Analysis (push) Failing after 3m10s
CI / testsuite (sqlite, 8.5, ) (push) Successful in 10m15s
This commit is contained in:
@@ -11,7 +11,7 @@ jobs:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
php-version: ['8.2', '8.4']
|
||||
php-version: ['8.2', '8.5']
|
||||
# db-type: ['mysql']
|
||||
db-type: ['sqlite', 'mysql', 'pgsql']
|
||||
prefer-lowest: ['']
|
||||
|
||||
@@ -87,10 +87,7 @@ class CartItemsController extends AppController {
|
||||
public function edit($id = null) {
|
||||
$this->request->allowMethod(['post', 'put', 'patch']);
|
||||
|
||||
$cartItem = $this->CartItems->find()
|
||||
->where(['CartItems.id' => $id])
|
||||
->contain(['Carts'])
|
||||
->firstOrFail();
|
||||
$cartItem = $this->CartItems->get($id, contain: ['Carts']);
|
||||
|
||||
$this->ShoppingCart->checkIfIsOwnCart($cartItem->cart);
|
||||
|
||||
@@ -135,13 +132,9 @@ class CartItemsController extends AppController {
|
||||
$this->request->allowMethod(['post', 'delete']);
|
||||
$identity = $this->getRequest()->getAttribute('identity');
|
||||
|
||||
// $cart = $this->viewBuilder()->getVar('cart');
|
||||
$cartItem = $this->CartItems->find()
|
||||
->where(['CartItems.id' => $id])
|
||||
->contain(['Carts'])
|
||||
->firstOrFail();
|
||||
$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)) {
|
||||
|
||||
Reference in New Issue
Block a user