I have been playing with the contact manager. I have added some fields of my own. When I do to save the contact I get a message "Requires first name or last name are required". Both fields are filled out.

Comments

darren.ferguson’s picture

Stephanie

Will be re-implementing the module in the near future to take into account new ways of doing things and also speed up the module without having the un-rulely and large SQL hard coded into it.

As for the adding extra fields and the first and last name filled out i am not sure why the module would actually do this .

Below is the code that does this and as it currently stands the only thing i can think of that would cause this to occur is if the additions you have made to the CCK node have removed the field_first_name it also looks like a bug since it should be checking the field_last_name in the second piece.

Can you verify the content settings to determine if you have removed the field_first_name from the CCK type?

// Checking to determine if a first or last name was entered into the form
  if (!drupal_strlen($form_state['values']['field_first_name'][0]['value']) && !drupal_strlen($form_state['values']['field_first_name'][0]['value'])) {
    form_set_error('', t('At least first or last name is required.'));
  }
darren.ferguson’s picture

Status: Active » Closed (fixed)