[rt-devel] how to store User->NickName ?

Al Joslin allen.joslin at gmail.com
Sat Jul 19 16:11:37 EDT 2014


this seems like it should work, the column names are right out of the database

everything except RealName and NickName works...

???

	# update the record if there is any new information
	print "\tupdating user for name:".$device->{'name'}." w/$WHDClientId_name: ".$whd_client_id."\n";

	my %userInfo = (
		Name => $device->{'name'},
		RealName => $device->{'name'},
		NickName => substr($device->{'name'},3,4),
		WorkPhone => $client->{'phone'},
		Address1 => $client->{'address'},
		City => $client->{'city'},
		State => $client->{'state'},
		Zip => $client->{'zip'}
	);
	
    ( $success, $message ) = $user->CanonicalizeUserInfo(\%userInfo);
	unless ($success) {
		print "Error: $message [File: ", __FILE__, " Line: ", __LINE__, "]\n";
		next;
	}




More information about the rt-devel mailing list