Merge branch '0.x' into prod
All checks were successful
CI / testsuite (pgsql, 8.2, ) (push) Successful in 5m26s
CI / testsuite (pgsql, 8.4, ) (push) Successful in 6m41s
CI / testsuite (mysql, 8.2, ) (push) Successful in 14m31s
CI / testsuite (sqlite, 8.2, ) (push) Successful in 4m39s
CI / testsuite (mysql, 8.4, ) (push) Successful in 18m53s
CI / testsuite (sqlite, 8.4, ) (push) Successful in 7m17s
CI / testsuite (sqlite, 8.2, prefer-lowest) (push) Successful in 13m47s
CI / Coding Standard & Static Analysis (push) Successful in 12m31s
All checks were successful
CI / testsuite (pgsql, 8.2, ) (push) Successful in 5m26s
CI / testsuite (pgsql, 8.4, ) (push) Successful in 6m41s
CI / testsuite (mysql, 8.2, ) (push) Successful in 14m31s
CI / testsuite (sqlite, 8.2, ) (push) Successful in 4m39s
CI / testsuite (mysql, 8.4, ) (push) Successful in 18m53s
CI / testsuite (sqlite, 8.4, ) (push) Successful in 7m17s
CI / testsuite (sqlite, 8.2, prefer-lowest) (push) Successful in 13m47s
CI / Coding Standard & Static Analysis (push) Successful in 12m31s
This commit is contained in:
@@ -10,7 +10,7 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
- uses: actions/checkout@v4
|
||||
uses: actions/checkout@v4
|
||||
- name: Release
|
||||
uses: softprops/action-gh-release@v2
|
||||
|
||||
|
||||
@@ -15,8 +15,8 @@ jobs:
|
||||
- name: Webhook
|
||||
uses: zzzze/webhook-trigger@master
|
||||
with:
|
||||
data: "{\"text\":\"cake-addresses build succeeded\"}"
|
||||
webhook_url: "https://chat.ops.hipowered.dev/hooks/697436db05042b4dd9cce240/hZCMq7jCPqHprKFcWp3v49wsf4MaN6caWdh7F8iXiSyr6Ts9"
|
||||
data: "{\"text\":\"${{ gitea.repository }} build succeeded 🎉\"}"
|
||||
webhook_url: ${{ secrets.BUILD_STATUS_NOTIFY_WEBHOOK_URL }}
|
||||
options: "-H \"Content-Type: application/json\""
|
||||
|
||||
on-failure:
|
||||
@@ -26,6 +26,6 @@ jobs:
|
||||
- name: Webhook
|
||||
uses: zzzze/webhook-trigger@master
|
||||
with:
|
||||
data: "{\"text\":\"cake-addresses build failed\"}"
|
||||
webhook_url: "https://chat.ops.hipowered.dev/hooks/697436db05042b4dd9cce240/hZCMq7jCPqHprKFcWp3v49wsf4MaN6caWdh7F8iXiSyr6Ts9"
|
||||
data: "{\"text\":\"${{ gitea.repository }} build failed 🔎\"}"
|
||||
webhook_url: ${{ secrets.BUILD_STATUS_NOTIFY_WEBHOOK_URL }}
|
||||
options: "-H \"Content-Type: application/json\""
|
||||
|
||||
@@ -175,11 +175,11 @@ class AddressesTable extends Table {
|
||||
* @return void
|
||||
*/
|
||||
public function beforeMarshal(EventInterface $event, ArrayObject $data, ArrayObject $options): void {
|
||||
if ($data['state_id'] && !isset($data['state'])) {
|
||||
if (($data['state_id'] ?? false) && !isset($data['state'])) {
|
||||
$state = $this->States->find()->where(['id' => $data['state_id']])->first();
|
||||
$data['state'] = $state->name ?? null;
|
||||
}
|
||||
if ($data['country_id'] && !isset($data['country'])) {
|
||||
if (($data['country_id'] ?? false) && !isset($data['country'])) {
|
||||
$country = $this->Countries->find()->where(['id' => $data['country_id']])->first();
|
||||
$data['country'] = $country->name ?? null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user