Révision dbb0c974
Ajouté par Assos Assos il y a plus de 9 ans
drupal7/sites/all/modules/commerce/modules/price/commerce_price.module | ||
---|---|---|
149 | 149 |
// Serialize data arrays before saving. |
150 | 150 |
foreach ($items as $delta => $item) { |
151 | 151 |
// Serialize an existing data array. |
152 |
if (!empty($item['data']) && is_array($item['data'])) {
|
|
152 |
if (isset($item['data']) && is_array($item['data'])) {
|
|
153 | 153 |
$entity->{$field_name}[$langcode][$delta]['data'] = serialize($item['data']); |
154 | 154 |
} |
155 | 155 |
} |
Formats disponibles : Unified diff
Weekly update of contrib modules