Skip to content
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

Closed
wants to merge 6 commits into from

Conversation

madasha
Copy link

@madasha madasha commented Oct 17, 2014

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

…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) {
Copy link
Contributor

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 😄

@dimitargsg
Copy link

@test I tested this patch and it seems to be working properly with Isis:

When disabled: http://awesomescreenshot.com/0b73oeyh94
When enabled: http://awesomescreenshot.com/03f3oeyu02

but with hathor the Mass Mail option is still visible(but does not work as expected):

http://awesomescreenshot.com/02a3of18b7

@hikashop-jerome
Copy link
Contributor

@test the patch remove the "mass-mail" by default in Isis ; so we have to edit the option to have it back.
The default behaviour is not the right one.

@brianteeman
Copy link
Contributor

@hikashop-jerome yes the default should be for no change and the option should be to disable

@madasha
Copy link
Author

madasha commented Oct 17, 2014

OK, will swap the defaults in a minute.

@madasha
Copy link
Author

madasha commented Oct 17, 2014

@dimitargsg, @brianteeman, @hikashop-jerome The functionality is reversed to keep the default behaviour intact, as suggested. Thanks for making the point!
@dimitargsg The Hathor template fix is there too, pls test again.

@madasha
Copy link
Author

madasha commented Oct 17, 2014

@zero-24 changes to keep code standard done. Thanks for pointing.

@hvdmeer
Copy link

hvdmeer commented Oct 17, 2014

@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.

This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/4747.

@isyvon
Copy link

isyvon commented Oct 17, 2014

@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.

@dimitargsg
Copy link

@test Now it works properly.

This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/4747.

@brianteeman
Copy link
Contributor

Multiple good tests - thanks everyone - setting to RTC

@zero-24
Copy link
Contributor

zero-24 commented Oct 17, 2014

@madasha we have two more CS issues:


FILE: ...la-cms/administrator/templates/hathor/html/mod_menu/default_enabled.php
--------------------------------------------------------------------------------
FOUND 2 ERROR(S) AFFECTING 2 LINE(S)
--------------------------------------------------------------------------------
  98 | ERROR | Whitespace found at end of line
 100 | ERROR | Tabs must be used to indent lines; spaces are not allowed
--------------------------------------------------------------------------------
FILE: .../joomla-cms/administrator/components/com_users/views/mail/view.html.php
--------------------------------------------------------------------------------
FOUND 1 ERROR(S) AFFECTING 1 LINE(S)
--------------------------------------------------------------------------------
 34 | ERROR | Whitespace found at end of line
--------------------------------------------------------------------------------

See: https://travis-ci.org/joomla/joomla-cms/jobs/38251859

@jissues-bot jissues-bot added the RTC This Pull Request is Ready To Commit label Oct 20, 2014
@phproberto
Copy link
Contributor

I added some tweaks in 4e8ce96 and merged

@Bakual Bakual added this to the Joomla! 3.3.7 milestone Oct 24, 2014
@mbabker mbabker modified the milestones: Joomla! 3.3.7, Joomla! 3.4.0 Nov 22, 2014
@zero-24 zero-24 removed the RTC This Pull Request is Ready To Commit label Oct 14, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet