Unverified Commit 90285e8f authored by Luc Didry's avatar Luc Didry
Browse files

Fix tidying of src/lib/Sympa/List.pm

parent 469a805b
...@@ -3735,38 +3735,38 @@ sub update_list_admin { ...@@ -3735,38 +3735,38 @@ sub update_list_admin {
## mapping between var and field names ## mapping between var and field names
my %map_field = ( my %map_field = (
reception => 'reception_admin', reception => 'reception_admin',
visibility => 'visibility_admin', visibility => 'visibility_admin',
date => 'date_epoch_admin', date => 'date_epoch_admin',
update_date => 'update_epoch_admin', update_date => 'update_epoch_admin',
inclusion => 'inclusion_admin', inclusion => 'inclusion_admin',
inclusion_ext => 'inclusion_ext_admin', inclusion_ext => 'inclusion_ext_admin',
inclusion_label => 'inclusion_label_admin', inclusion_label => 'inclusion_label_admin',
gecos => 'comment_admin', gecos => 'comment_admin',
password => 'password_user', password => 'password_user',
email => 'user_admin', email => 'user_admin',
subscribed => 'subscribed_admin', subscribed => 'subscribed_admin',
info => 'info_admin', info => 'info_admin',
profile => 'profile_admin', profile => 'profile_admin',
role => 'role_admin' role => 'role_admin'
); );
## mapping between var and tables ## mapping between var and tables
my %map_table = ( my %map_table = (
reception => 'admin_table', reception => 'admin_table',
visibility => 'admin_table', visibility => 'admin_table',
date => 'admin_table', date => 'admin_table',
update_date => 'admin_table', update_date => 'admin_table',
inclusion => 'admin_table', inclusion => 'admin_table',
inclusion_ext => 'admin_table', inclusion_ext => 'admin_table',
inclusion_label => 'admin_table', inclusion_label => 'admin_table',
gecos => 'admin_table', gecos => 'admin_table',
password => 'user_table', password => 'user_table',
email => 'admin_table', email => 'admin_table',
subscribed => 'admin_table', subscribed => 'admin_table',
info => 'admin_table', info => 'admin_table',
profile => 'admin_table', profile => 'admin_table',
role => 'admin_table' role => 'admin_table'
); );
#### ?? #### ??
## additional DB fields ## additional DB fields
...@@ -4022,10 +4022,10 @@ sub add_list_member { ...@@ -4022,10 +4022,10 @@ sub add_list_member {
suspend_end_date_subscriber, suspend_end_date_subscriber,
number_messages_subscriber) number_messages_subscriber)
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, 0)}, VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, 0)},
$who, $new_user->{'gecos'}, $who, $new_user->{'gecos'},
$name, $self->{'domain'}, $name, $self->{'domain'},
$new_user->{'date'}, $new_user->{'update_date'}, $new_user->{'date'}, $new_user->{'update_date'},
$new_user->{'inclusion'}, $new_user->{'inclusion_ext'}, $new_user->{'inclusion'}, $new_user->{'inclusion_ext'},
$new_user->{'inclusion_label'}, $new_user->{'inclusion_label'},
$new_user->{'reception'}, $new_user->{'topics'}, $new_user->{'reception'}, $new_user->{'topics'},
$new_user->{'visibility'}, $new_user->{'subscribed'}, $new_user->{'visibility'}, $new_user->{'subscribed'},
...@@ -4474,7 +4474,7 @@ sub restore_users { ...@@ -4474,7 +4474,7 @@ sub restore_users {
$self->add_list_member($user); $self->add_list_member($user);
} }
} else { } else {
my $changed = 0; my $changed = 0;
my %map_field = _map_list_admin_cols(); my %map_field = _map_list_admin_cols();
while (my $para = <$lock_fh>) { while (my $para = <$lock_fh>) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment