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:
parent
4eb73ab5f3
commit
6304f3cab4
@ -574,8 +574,8 @@ class PirepService extends Service
|
|||||||
|
|
||||||
foreach ($field_values as $fv) {
|
foreach ($field_values as $fv) {
|
||||||
PirepFieldValue::updateOrCreate(
|
PirepFieldValue::updateOrCreate(
|
||||||
['pirep_id' => $pirep_id, 'name' => $fv->name],
|
['pirep_id' => $pirep_id, 'name' => $fv['name']],
|
||||||
['value' => $fv->value, 'source' => $fv->source]
|
['value' => $fv['value'], 'source' => $fv['source']]
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user