Fix PirepService (#1261)

`$fv['name']` should be used instead of `$fv->name` due to the nature of source data.

Fixes #1260
This commit is contained in:
B.Fatih KOZ 2021-07-16 20:24:31 +03:00 committed by GitHub
parent 4eb73ab5f3
commit 6304f3cab4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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']]
);
}
}