From 6304f3cab4a0ccaddaaaa8a32d8e8c077438345a Mon Sep 17 00:00:00 2001 From: "B.Fatih KOZ" Date: Fri, 16 Jul 2021 20:24:31 +0300 Subject: [PATCH] Fix PirepService (#1261) `$fv['name']` should be used instead of `$fv->name` due to the nature of source data. Fixes #1260 --- app/Services/PirepService.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Services/PirepService.php b/app/Services/PirepService.php index 57baea7d..33c8832b 100644 --- a/app/Services/PirepService.php +++ b/app/Services/PirepService.php @@ -574,8 +574,8 @@ class PirepService extends Service foreach ($field_values as $fv) { PirepFieldValue::updateOrCreate( - ['pirep_id' => $pirep_id, 'name' => $fv->name], - ['value' => $fv->value, 'source' => $fv->source] + ['pirep_id' => $pirep_id, 'name' => $fv['name']], + ['value' => $fv['value'], 'source' => $fv['source']] ); } }