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
feed270a
Commit
feed270a
authored
May 01, 2018
by
IKEDA Soji
Browse files
Issue #263: Error message is missing one parameter
parent
3786e3f1
Changes
3
Show whitespace changes
Inline
Side-by-side
src/lib/Sympa/Request/Handler/add.pm
View file @
feed270a
...
...
@@ -8,8 +8,8 @@
# Copyright (c) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
# 2006, 2007, 2008, 2009, 2010, 2011 Comite Reseau des Universites
# Copyright (c) 2011, 2012, 2013, 2014, 2015, 2016, 2017 GIP RENATER
# Copyright 2017 The Sympa Community. See the AUTHORS.md file at the
top-level
# directory of this distribution and at
# Copyright 2017
, 2018
The Sympa Community. See the AUTHORS.md file at the
#
top-level
directory of this distribution and at
# <https://github.com/sympa-community/sympa.git>.
#
# This program is free software; you can redistribute it and/or modify
...
...
@@ -72,7 +72,7 @@ sub _twist {
if
(
$list
->
is_list_member
(
$email
))
{
$self
->
add_stash
(
$request
,
'
user
',
'
already_subscriber
',
{'
email
'
=>
$email
});
{'
email
'
=>
$email
,
'
listname
'
=>
$list
->
{'
name
'}
});
$log
->
syslog
('
err
',
'
ADD command rejected; user "%s" already member of list "%s"
',
$email
,
$which
);
...
...
src/lib/Sympa/Request/Handler/invite.pm
View file @
feed270a
...
...
@@ -8,6 +8,9 @@
# Copyright (c) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
# 2006, 2007, 2008, 2009, 2010, 2011 Comite Reseau des Universites
# Copyright (c) 2011, 2012, 2013, 2014, 2015, 2016, 2017 GIP RENATER
# Copyright 2018 The Sympa Community. See the AUTHORS.md file at the
# top-level directory of this distribution and at
# <https://github.com/sympa-community/sympa.git>.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
...
...
@@ -60,7 +63,7 @@ sub _twist {
if
(
$list
->
is_list_member
(
$email
))
{
$self
->
add_stash
(
$request
,
'
user
',
'
already_subscriber
',
{'
email
'
=>
$email
});
{'
email
'
=>
$email
,
'
listname
'
=>
$list
->
{'
name
'}
});
$log
->
syslog
(
'
err
',
'
INVITE command rejected; user "%s" already member of list "%s"
',
...
...
src/lib/Sympa/Request/Handler/subscribe.pm
View file @
feed270a
...
...
@@ -8,6 +8,9 @@
# Copyright (c) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
# 2006, 2007, 2008, 2009, 2010, 2011 Comite Reseau des Universites
# Copyright (c) 2011, 2012, 2013, 2014, 2015, 2016, 2017 GIP RENATER
# Copyright 2018 The Sympa Community. See the AUTHORS.md file at the
# top-level directory of this distribution and at
# <https://github.com/sympa-community/sympa.git>.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
...
...
@@ -74,7 +77,7 @@ sub _twist {
my
$user_entry
=
$list
->
get_list_member
(
$email
);
if
(
defined
$user_entry
)
{
$self
->
add_stash
(
$request
,
'
user
',
'
already_subscriber
',
{'
email
'
=>
$email
});
{'
email
'
=>
$email
,
'
listname
'
=>
$list
->
{'
name
'}
});
$log
->
syslog
(
'
err
',
'
User %s is subscribed to %s already. Ignoring subscription request
',
...
...
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