Opened 4 years ago
Closed 4 years ago
#1485648 closed Bugs (fixed)
Multiple identities from virtuser_query all set to default
| Reported by: | gregorjurgele | Owned by: | |
|---|---|---|---|
| Priority: | 7 | Milestone: | 0.2-stable |
| Component: | Core functionality | Version: | 0.2-beta |
| Severity: | normal | Keywords: | virtuser_query |
| Cc: |
Description
when multiple identities are created from virtuser_query all are set default. i propose the following solution in program/include/rcube_user.php to make the first identity default:
$standard = 1;
while ($sql_arr = $dbh->fetch_array($sql_result))
{
$dbh->query(
"INSERT INTO `.get_table_name('identities').`
(user_id, del, standard, name, email)
VALUES (?, 0, $standard, ?, ?)",
$user_id,
strip_newlines($user_name),
preg_replace('/^@/', $user . '@', $sql_arr[0]));
$standard = 0;
}
Change History (1)
comment:1 Changed 4 years ago by alec
- Resolution set to fixed
- Status changed from new to closed
Note: See
TracTickets for help on using
tickets.

Fixed in [17060ee1].