Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Projets publics
Sympa
Commits
7df48b8e
Unverified
Commit
7df48b8e
authored
Apr 17, 2022
by
IKEDA Soji
Committed by
GitHub
Apr 17, 2022
Browse files
Merge pull request #1381 from ikedas/issue-1380 by ikedas
When closed list is restored, subscribers won't be restored (#1380)
parents
66bf5808
e88f84d9
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/lib/Sympa/List.pm
View file @
7df48b8e
...
...
@@ -3205,6 +3205,9 @@ sub add_list_member {
}
}
# For backward compat., this column is required and cannot be NULL.
$values
->
{
number_messages
}
//
=
0
;
#Log in stat_table to make statistics
$log
->
add_stat
(
'
robot
'
=>
$self
->
{'
domain
'},
...
...
@@ -3240,9 +3243,8 @@ sub add_list_member {
and
$sth
=
$sdm
->
do_prepared_query
(
sprintf
(
q{INSERT INTO subscriber_table
(%s, list_subscriber, robot_subscriber,
number_messages_subscriber)
SELECT %s, ?, ?, 0
(%s, list_subscriber, robot_subscriber)
SELECT %s, ?, ?
FROM dual
WHERE NOT EXISTS (
SELECT 1
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment