Fix PirepService (#1261)

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

Fixes #1260
pull/1262/head
B.Fatih KOZ 3 years ago committed by GitHub
parent 4eb73ab5f3
commit 6304f3cab4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

Loading…
Cancel
Save