Projet

Général

Profil

Révision c9e51f47

Ajouté par Julien Enselme il y a environ 7 ans

Udpate to 7.54

Voir les différences:

drupal7/modules/field/modules/number/number.module
164 164
      }
165 165
    }
166 166
  }
167
  if ($field['type'] == 'number_float') {
168
    // Remove the decimal point from float values with decimal
169
    // point but no decimal numbers.
170
    foreach ($items as $delta => $item) {
171
      if (isset($item['value'])) {
172
        $items[$delta]['value'] = floatval($item['value']);
173
      }
174
    }
175
  }
167 176
}
168 177

  
169 178
/**

Formats disponibles : Unified diff