Merge pull request #6515 from annando/connector-posts

Fix: Connector posts now do work again (postopts hadn't been stored)
This commit is contained in:
Hypolite Petovan 2019-01-24 16:23:34 -05:00 committed by GitHub
commit 2b0610eaf5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -31,7 +31,7 @@ class ItemDeliveryData
public static function extractFields(array &$fields)
{
$delivery_data = [];
foreach (ItemDeliveryData::FIELD_LIST as $key => $field) {
foreach (array_merge(ItemDeliveryData::FIELD_LIST, ItemDeliveryData::LEGACY_FIELD_LIST) as $key => $field) {
if (is_int($key) && isset($fields[$field])) {
// Legacy field moved from item table
$delivery_data[$field] = $fields[$field];