First and Last Name don't seem to be writing to db

alimc29 - December 6, 2007 - 21:32
Project:CiviCRM Subscribe
Version:5.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

I've previously only ever used the civicrm_subscribe module for collecting E-mail addresses, but we now have need for collecting the First and Last Names as well, so this is the first time I'm looking into trying to get those fields as well.

But when I fill out the form at www.example.com/user/subscribe, it only writes my email to the CiviCRM database and doesn't seem to do anything with the First Name and Last Name that I input.

Does anyone else have this issue or use this module (successfully or unsuccessfully) to grab First and Last Names?

Is it supposed to collect these? (I would assume so, since they are included in the form)

#1

msn - December 13, 2007 - 18:46

I can confirm your issue: first and last names are not written in CiviCRM.

#2

douggreen - December 16, 2007 - 02:11
Status:active» fixed

Thanks! I just checked in a fix for this, please confirm that it works.

#3

msn - December 16, 2007 - 15:11

Confirming that first and last names working: great!

I tested only with civicrm (no drupal users).

Correct me if I am wrong: when an emailadres is present in civicrm then the new first and lastname do not overwrite the existing.

#4

douggreen - December 16, 2007 - 15:38
Status:fixed» needs review

That's correct. I think that it only makes sense to update these values if they weren't already set, otherwise, someone unknown user could change all of your contact names. So, I just added some code (and checked it in) to set the name when they are not already set. Please test this latest change and mark as "fixed" if it works for you. Thank!

#5

douggreen - December 23, 2007 - 17:32
Status:needs review» fixed

With one week pasing an no confirmation from @msn, I think that I addressed the emailaddress issue, so I'm marking as fixed.

#6

msn - December 30, 2007 - 12:48

Sorry, I did not read in this forum last week.

My 'overwriting' issue was ment as a remark: I was searching for a conformation, wich you made, thanks.

I did not test the last update, because I switched over to a civicrm profile ( I am not using the drupal user function) with more fields to fill in for a newsletter account.

#7

Anonymous - January 13, 2008 - 12:51
Status:fixed» closed

Automatically closed -- issue fixed for two weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.