Projet

Général

Profil

Révision b858700c

Ajouté par Assos Assos il y a environ 10 ans

Weekly update of contrib modules

Voir les différences:

drupal7/sites/all/modules/commerce/modules/line_item/includes/views/handlers/commerce_line_item_handler_field_edit_quantity.inc
61 61
    $field_name = $this->options['id'];
62 62
    foreach (element_children($form[$field_name]) as $row_id) {
63 63
      // Ensure the quantity is actually a numeric value.
64
      $line_item_id = $form[$field_name][$row_id]['#line_item_id'];
65 64
      if (!is_numeric($form_state['values'][$field_name][$row_id]) || $form_state['values'][$field_name][$row_id] < 0) {
66 65
        form_set_error($field_name . '][' . $row_id, t('You must specify a positive number for the quantity'));
67 66
      }

Formats disponibles : Unified diff