Just a mistype in the number_field_settings function.

      $form['min'] = array(
        '#type' => 'textfield',
        '#title' => t('Minimum'),
        '#default_value' => $field['min'] ? $field['min'] : '',
      );
      $form['max'] = array(
        '#type' => 'textfield',
        '#title' => t('Maximum'),
        '#default_value' => $field['min'] ? $field['min'] : '',
      );

Should be replaced with

      $form['min'] = array(
        '#type' => 'textfield',
        '#title' => t('Minimum'),
        '#default_value' => $field['min'] ? $field['min'] : '',
      );
      $form['max'] = array(
        '#type' => 'textfield',
        '#title' => t('Maximum'),
        '#default_value' => $field['max'] ? $field['max'] : '',
      );

Yes, I also love copypasting when programming :)

CommentFileSizeAuthor
#2 number_max.patch634 bytesRayZ
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

ultraBoy’s picture

Assigned: ultraBoy » Unassigned

...I don't have access to CVS

RayZ’s picture

FileSize
634 bytes

Patch attached.

JonBob’s picture

Status: Reviewed & tested by the community » Fixed

Applied. Thanks.

Anonymous’s picture

Status: Fixed » Closed (fixed)