Fixes bug #869805. When updating a group's name, in table phpgw_accounts only the account_lid field got updated, now account_firstname gets updated too.

This commit is contained in:
alpeb 2004-03-30 04:23:23 +00:00
parent 4b5367c651
commit 24e12a61dd

View File

@ -474,6 +474,7 @@
if($group_info['account_name'] && $old_group_info['account_lid'] <> $group_info['account_name']) if($group_info['account_name'] && $old_group_info['account_lid'] <> $group_info['account_name'])
{ {
$group->data['account_lid'] = $group_info['account_name']; $group->data['account_lid'] = $group_info['account_name'];
$group->data['firstname'] = $group_info['account_name'];
$basedir = $GLOBALS['phpgw_info']['server']['files_dir'] . SEP . 'groups' . SEP; $basedir = $GLOBALS['phpgw_info']['server']['files_dir'] . SEP . 'groups' . SEP;
if (! @rename($basedir . $old_group_info['account_lid'], $basedir . $group_info['account_name'])) if (! @rename($basedir . $old_group_info['account_lid'], $basedir . $group_info['account_name']))