Bug 337661: LDAP user login failure: Can't locate object method "realname" via package "Bugzilla::User" - Patch by Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit a=justdave

This commit is contained in:
lpsolit%gmail.com 2006-05-15 16:13:02 +00:00
Родитель a334962409
Коммит e22e95b114
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -109,7 +109,7 @@ sub create_or_update_user {
$dbh->do('UPDATE profiles SET login_name = ? WHERE userid = ?', $dbh->do('UPDATE profiles SET login_name = ? WHERE userid = ?',
$username, $user->id); $username, $user->id);
} }
if ($real_name && $user->realname ne $real_name) { if ($real_name && $user->name ne $real_name) {
$dbh->do('UPDATE profiles SET realname = ? WHERE userid = ?', $dbh->do('UPDATE profiles SET realname = ? WHERE userid = ?',
undef, $real_name, $user->id); undef, $real_name, $user->id);
} }