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

This commit is contained in:
bs
2026-08-21 03:17:22 -07:00
parent 1eb52bfea6
commit 8a396fa8c7
2 changed files with 4 additions and 11 deletions
+1 -1
View File
@@ -11,7 +11,7 @@ jobs:
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
php-version: ['8.2', '8.4'] php-version: ['8.2', '8.5']
# db-type: ['mysql'] # db-type: ['mysql']
db-type: ['sqlite', 'mysql', 'pgsql'] db-type: ['sqlite', 'mysql', 'pgsql']
prefer-lowest: [''] prefer-lowest: ['']
+2 -9
View File
@@ -87,10 +87,7 @@ class CartItemsController extends AppController {
public function edit($id = null) { public function edit($id = null) {
$this->request->allowMethod(['post', 'put', 'patch']); $this->request->allowMethod(['post', 'put', 'patch']);
$cartItem = $this->CartItems->find() $cartItem = $this->CartItems->get($id, contain: ['Carts']);
->where(['CartItems.id' => $id])
->contain(['Carts'])
->firstOrFail();
$this->ShoppingCart->checkIfIsOwnCart($cartItem->cart); $this->ShoppingCart->checkIfIsOwnCart($cartItem->cart);
@@ -135,11 +132,7 @@ class CartItemsController extends AppController {
$this->request->allowMethod(['post', 'delete']); $this->request->allowMethod(['post', 'delete']);
$identity = $this->getRequest()->getAttribute('identity'); $identity = $this->getRequest()->getAttribute('identity');
// $cart = $this->viewBuilder()->getVar('cart'); $cartItem = $this->CartItems->get($id, contain: ['Carts']);
$cartItem = $this->CartItems->find()
->where(['CartItems.id' => $id])
->contain(['Carts'])
->firstOrFail();
$this->ShoppingCart->checkIfIsOwnCart($cartItem->cart); $this->ShoppingCart->checkIfIsOwnCart($cartItem->cart);