-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Disable Mass Mail Users option (Issue #4490) #4747
Conversation
…ecessary in order to disable this functionality if the option is disabled
@@ -25,6 +25,11 @@ class UsersControllerMail extends JControllerLegacy | |||
*/ | |||
public function send() | |||
{ | |||
// Redirect to admin index if mass mailer disabled in conf | |||
if (JFactory::getApplication()->get('massmailon') != 1) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please move the {
into a new line 😄
@test I tested this patch and it seems to be working properly with Isis: When disabled: http://awesomescreenshot.com/0b73oeyh94 but with hathor the Mass Mail option is still visible(but does not work as expected): |
@test the patch remove the "mass-mail" by default in Isis ; so we have to edit the option to have it back. |
@hikashop-jerome yes the default should be for no change and the option should be to disable |
OK, will swap the defaults in a minute. |
@dimitargsg, @brianteeman, @hikashop-jerome The functionality is reversed to keep the default behaviour intact, as suggested. Thanks for making the point! |
@zero-24 changes to keep code standard done. Thanks for pointing. |
@test Followed instructions and applied test. Setting was added to mail settings and I set it to disable. The mass mail was removed from templates Isis and Hathor. |
@test I applied the patch and it works with Isis template. The default value for the option is the right one : mass email is activated by default. |
@test Now it works properly. |
Multiple good tests - thanks everyone - setting to RTC |
@madasha we have two more CS issues:
|
I added some tweaks in 4e8ce96 and merged |
Adding option to disable mass mail to users option and checks where necessary in order to disable this functionality if the option is disabled. Re: http://issues.joomla.org/tracker/joomla-cms/4490