Re: how to store User->NickName ?
Kevin Falcone <[email protected]>
| Newsgroups | gmane.comp.bug-tracking.request-tracker.devel |
|---|---|
| Message-ID | <[email protected]> |
On Sat, Jul 19, 2014 at 04:11:37PM -0400, Al Joslin wrote:
> 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;
> }
I don't understand your code. CanonicalizeUserInfo is an empty
subroutine. Presumably you've built more infrastructure that you're
not showing.
https://github.com/bestpractical/rt/blob/stable/lib/RT/User.pm#L712
Even the documentation says "by default nothing is done".
-kevin
--
RT Training - Boston, September 9-10
http://bestpractical.com/training
signature.asc
(application/pgp-signature, 235 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (Darwin) Comment: GPGTools - http://gpgtools.org iEYEARECAAYFAlPRF1EACgkQ0+gKWp5CJQpIAwCfYzkjeyLIKTrwa4gYw5snYwXm L58AnA4yUIdl/tLxGfxtH5hl+PqyAz8l =sEvz -----END PGP SIGNATURE-----